From: Guytri KASTANE Date: Tue, 16 Jul 2024 12:11:26 +0000 (+0200) Subject: openturns 1.22: fix dependencies path (use pip install instead of easy_install) X-Git-Tag: V9_13_0~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=751c326447eafb90d01aa37477870545ad37b55a;p=tools%2Fsat_salome.git openturns 1.22: fix dependencies path (use pip install instead of easy_install) --- 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 ..."