Use relative python module path
parent
35bd54b690
commit
b0207a6e25
|
@ -34,7 +34,11 @@ jobs:
|
|||
. /opt/conda/bin/activate root
|
||||
mkdir 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
|
||||
|
||||
- run:
|
||||
|
|
Loading…
Reference in New Issue