Use relative python module path
parent
35bd54b690
commit
b0207a6e25
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue