From 104e9030c571ed0986d5479ad616d37875e617b7 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Tue, 27 Sep 2022 16:49:30 +0200 Subject: [PATCH] on Ubuntu 22, strangely uses dist-packages instead of site-packages --- products/compil_scripts/openturns-1.19.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 -- 2.39.2