-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall_python_module.cmake.in
26 lines (24 loc) · 1.33 KB
/
install_python_module.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
################################################################################
# This file is part of CosTuuM
# Copyright (C) 2019 Bert Vandenbroucke ([email protected])
#
# CosTuuM is free software: you can redistribute it and/or modify it under the
# terms of the GNU Affero General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#
# CosTuuM is distributed in the hope that it will be useful, but WITOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License
# along with CosTuuM. If not, see <http://www.gnu.org/licenses/>.
###############################################################################
# script executed during installation of the CosTuuM Python module
# this is a simple wrapper for setup.py install that uses the right
# Python interpreter and setup script location
# we install the module in the user home folder (--user)
# and make sure modules that are already present are overwritten (--force)
execute_process(COMMAND @PYTHON_EXECUTABLE@ @PROJECT_BINARY_DIR@/setup.py
install --user --force)