From: Nabil Ghodbane Date: Tue, 27 Sep 2022 14:49:30 +0000 (+0200) Subject: on Ubuntu 22, strangely uses dist-packages instead of site-packages X-Git-Tag: V9_11_0~312 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=104e9030c571ed0986d5479ad616d37875e617b7;p=tools%2Fsat_salome.git on Ubuntu 22, strangely uses dist-packages instead of site-packages --- diff --git a/products/compil_scripts/openturns-1.19.sh b/products/compil_scripts/openturns-1.19.sh index 4f43693..f61b586 100755 --- a/products/compil_scripts/openturns-1.19.sh +++ b/products/compil_scripts/openturns-1.19.sh @@ -148,6 +148,12 @@ then rmdir ${PRODUCT_INSTALL}/lib64 fi +if [[ -d "${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages" ]]; then + cd ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION} + ln -sf dist-packages site-packages + cd $BUILD_DIR/openturns +fi + export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:${PYTHONPATH} export LD_LIBRARY_PATH=${PRODUCT_INSTALL}/lib:${LD_LIBRARY_PATH} chmod +x ${SOURCE_DIR}/openturns-1.19/python/test/t_features.py @@ -407,10 +413,11 @@ fi cd ${PRODUCT_INSTALL}/lib # On some nodes, the link to OT is not done properly. +# In addition to this issue, it seems that there is a bug in openturns 1.19 which uses 20 instead of 19 as suffix. if [[ ! -f libOT.so.0 ]]; then echo "INFO: Fixing libOT.so" - ln -sf libOT.so.0.19.0 libOT.so.0.19 - ln -sf libOT.so.0.19 libOT.so.0 + ln -sf libOT.so.0.20.0 libOT.so.0.20 + ln -sf libOT.so.0.20 libOT.so.0 ln -sf libOT.so.0 libOT.so fi