]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
Fix bash error and force python 3 usage with PYTHONBIN in case python 2 is the defaul... cbr/fix_openturns_compil_script 4/head
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Fri, 2 Jun 2023 07:45:35 +0000 (09:45 +0200)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Fri, 2 Jun 2023 07:45:35 +0000 (09:45 +0200)
products/compil_scripts/openturns-1.19.sh
products/compil_scripts/openturns-1.20.1.sh

index fdc7b80ab03553183375dd05aa6b12f75b555856..62b18ded0f9afb8742335c0b132fd72523461834 100755 (executable)
@@ -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...."
index 5b96c5a90534f8e84cd02b20a9bedfbd05f40ee4..d90b94d9a5f0d95c05bbd773a6077352a67ecfea 100755 (executable)
@@ -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...."