Files
opm-common/python/setup-install.sh.in
Joakim Hove 59b73a0667 Change the python installation code
- Main cmake based python installation is based on small script install.py and
  not setup.py
- Python installation is guarded by cmake switch OPM_INSTALL_PYTHON
- Configure convenience shell script setup-install.sh for setup.py based
  installation.
- Remove PYTHONPATH hacks from setup.py
2019-10-14 13:13:09 +02:00

18 lines
768 B
Bash

#!/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-install.sh from this templated file - that script can be used to
# run the installation through the setup.py macinery 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.
cd @PROJECT_BINARY_DIR@/python
export PYTHONPPATH=@CMAKE_INSTALL_PREFIX@/@PYTHON_PREFIX
export LD_LIBRARY_PATH=@PROJECT_BINARY_DIR@/lib:@_setup_lib_dirs@:$LD_LIBRARY_PATH
@PYTHON_EXECUTABLE@ setup.py build_ext --dry-run install --prefix=@CMAKE_INSTALL_PREFIX@