2019-09-05 08:34:08 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
# This cmake template file can be used to create a small shell script which can
|
|
|
|
|
# be used to simplify the Python development process. The cmake step will create
|
|
|
|
|
# script setup-build.sh from this templated file - that script can be used to
|
|
|
|
|
# run the python setup.py process without going through cmake.
|
|
|
|
|
#
|
|
|
|
|
# The script in question is purely a convenience for Python development, it is
|
|
|
|
|
# fully optional to use it, and it is not used by the main cmake based build
|
|
|
|
|
# system.
|
|
|
|
|
|
|
|
|
|
cp -r @PROJECT_SOURCE_DIR@/python @PROJECT_BINARY_DIR@
|
|
|
|
|
cd @PROJECT_BINARY_DIR@/python
|
2020-01-26 08:40:53 +01:00
|
|
|
rm -f python/opm/libopmcommon_python*
|
2019-09-05 08:34:08 +02:00
|
|
|
|
2019-09-17 14:16:55 +02:00
|
|
|
export CC=@CMAKE_CXX_COMPILER@
|
|
|
|
|
|
2019-10-04 20:14:27 +02:00
|
|
|
@PYTHON_EXECUTABLE@ setup.py build build_ext --build-lib=python/opm \
|
2019-09-05 08:34:08 +02:00
|
|
|
--library-dirs=@_setup_lib_dirs@ \
|
2020-01-26 08:40:53 +01:00
|
|
|
@_rpath_arg@ \
|
2019-09-05 08:34:08 +02:00
|
|
|
--include-dirs=@_setup_include_dirs@
|