From 751c326447eafb90d01aa37477870545ad37b55a Mon Sep 17 00:00:00 2001 From: Guytri KASTANE Date: Tue, 16 Jul 2024 14:11:26 +0200 Subject: [PATCH] openturns 1.22: fix dependencies path (use pip install instead of easy_install) --- products/compil_scripts/openturns-1.22.sh | 25 +++++------------------ 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/products/compil_scripts/openturns-1.22.sh b/products/compil_scripts/openturns-1.22.sh index 98ccb54..1c7bc3f 100755 --- a/products/compil_scripts/openturns-1.22.sh +++ b/products/compil_scripts/openturns-1.22.sh @@ -462,27 +462,12 @@ if [[ -d "$SOURCE_DIR/otfftw-0.14" ]]; then cd ${BUILD_DIR}/$k cp -R $SOURCE_DIR/$k-${OTP[$k]}/* . # - if [ $k == "otpod" ]; then - ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip . --no-deps --prefix=$PRODUCT_INSTALL - if [ $? -ne 0 ]; then - echo "ERROR on ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip . --no-deps --prefix=$PRODUCT_INSTALL" - exit 4 - fi - else - $PYTHONBIN setup.py build - if [ $? -ne 0 ] - then - echo "ERROR on ${PYTHONBIN} setup.py build" - exit 4 - fi - # - $PYTHONBIN setup.py install --prefix=$PRODUCT_INSTALL - if [ $? -ne 0 ] - then - echo "ERROR on ${PYTHONBIN} setup.py install --prefix=$PRODUCT_INSTALL" - exit 5 - fi + ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip . --no-deps --prefix=$PRODUCT_INSTALL + if [ $? -ne 0 ]; then + echo "ERROR on ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip . --no-deps --prefix=$PRODUCT_INSTALL" + exit 4 fi + # echo "INFO: check presence of $PRODUCT_INSTALL/local" if [ -d "$PRODUCT_INSTALL/local" ]; then echo "INFO: $PRODUCT_INSTALL/local is present - reearrange ..." -- 2.39.2