From 31e9a29372436de5256e2d2ddfde97d3f57a9a65 Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Fri, 2 Jun 2023 09:45:35 +0200 Subject: [PATCH] Fix bash error and force python 3 usage with PYTHONBIN in case python 2 is the default python on the system (Debian 10) --- products/compil_scripts/openturns-1.19.sh | 4 ++-- products/compil_scripts/openturns-1.20.1.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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...." -- 2.39.2