Use relative python module path

LT1AB
Ryan Burns 2020-05-02 14:45:18 -07:00
parent 35bd54b690
commit b0207a6e25
1 changed files with 5 additions and 1 deletions

View File

@ -34,7 +34,11 @@ jobs:
. /opt/conda/bin/activate root . /opt/conda/bin/activate root
mkdir build mkdir build
cd build cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/conda -DPYTHON_MODULE_DIR=$(python3 -c "import site; print(site.getsitepackages()[0])") INSTALLPATH=/opt/conda
MODPATH=$(python3 -c "import site; print(site.getsitepackages()[0])")
# convert to relative path
MODPATH=$(realpath --relative-to=$INSTALLPATH $MODPATH)
cmake .. -DCMAKE_INSTALL_PREFIX=$INSTALLPATH -DPYTHON_MODULE_DIR=$MODPATH
make install VERBOSE=y make install VERBOSE=y
- run: - run: