From: Christophe Bourcier Date: Fri, 2 Jun 2023 07:45:35 +0000 (+0200) Subject: Fix bash error and force python 3 usage with PYTHONBIN in case python 2 is the defaul... X-Git-Tag: V9_11_0~12^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fcbr%2Ffix_openturns_compil_script;p=tools%2Fsat_salome.git Fix bash error and force python 3 usage with PYTHONBIN in case python 2 is the default python on the system (Debian 10) --- diff --git a/products/compil_scripts/openturns-1.19.sh b/products/compil_scripts/openturns-1.19.sh index fdc7b80..62b18de 100755 --- a/products/compil_scripts/openturns-1.19.sh +++ b/products/compil_scripts/openturns-1.19.sh @@ -152,7 +152,7 @@ fi echo echo "*** check installation" -if [! -d "${PRODUCT_INSTALL}/lib" ]; then +if [ ! -d "${PRODUCT_INSTALL}/lib" ]; then mkdir -p ${PRODUCT_INSTALL}/lib fi @@ -178,7 +178,7 @@ 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 -${SOURCE_DIR}/openturns-1.19/python/test/t_features.py +${PYTHONBIN} ${SOURCE_DIR}/openturns-1.19/python/test/t_features.py if [ $? -ne 0 ] then echo "ERROR testing Openturns features...." diff --git a/products/compil_scripts/openturns-1.20.1.sh b/products/compil_scripts/openturns-1.20.1.sh index 5b96c5a..d90b94d 100755 --- a/products/compil_scripts/openturns-1.20.1.sh +++ b/products/compil_scripts/openturns-1.20.1.sh @@ -152,7 +152,7 @@ fi echo echo "*** check installation" -if [! -d "${PRODUCT_INSTALL}/lib" ]; then +if [ ! -d "${PRODUCT_INSTALL}/lib" ]; then mkdir -p ${PRODUCT_INSTALL}/lib fi @@ -176,7 +176,7 @@ 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.20.1/python/test/t_features.py -${SOURCE_DIR}/openturns-1.20.1/python/test/t_features.py +${PYTHONBIN} ${SOURCE_DIR}/openturns-1.20.1/python/test/t_features.py if [ $? -ne 0 ] then echo "ERROR testing Openturns features...."