Salome HOME
minor correction:
authorDUC ANH HOANG <duc-anh-externe.hoang@edf.fr>
Mon, 26 Sep 2022 12:32:48 +0000 (14:32 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 29 Sep 2022 14:12:55 +0000 (16:12 +0200)
  Append pythonbin on somme commande in order to build on system where there are both python2 and python3

products/compil_scripts/omniORB.sh
products/compil_scripts/omniORBpy.sh
products/compil_scripts/openturns-1.18.sh

index 5d8322c41fc1388706056aadd96643f919c97396..b58b045af4f4b6b9e5758a91be5189ea778a35aa 100755 (executable)
@@ -10,7 +10,7 @@ PYTHON_HOME=$PYTHONHOME
 
 echo
 echo "*** configure --prefix=$PRODUCT_INSTALL --disable-ipv6"
-$SOURCE_DIR/configure --prefix=$PRODUCT_INSTALL --disable-ipv6
+PYTHON=$PYTHONBIN $SOURCE_DIR/configure --prefix=$PRODUCT_INSTALL --disable-ipv6
 if [ $? -ne 0 ]
 then
     echo "ERROR on configure"
index 6fa96a38898122a7813ceceb78e39e46eb815d21..e1c3f068ac6e607dd0dcf8b0e18de36b365adebf 100755 (executable)
@@ -6,7 +6,7 @@ echo "##########################################################################
 
 echo
 echo "*** configure  --prefix=${OMNIORB_ROOT_DIR}"
-$SOURCE_DIR/configure --prefix=${OMNIORB_ROOT_DIR}
+PYTHON=$PYTHONBIN $SOURCE_DIR/configure --prefix=${OMNIORB_ROOT_DIR}
 if [ $? -ne 0 ]
 then
     echo "ERROR on configure"
index d180a40b2cdc8689d5147eda7d4ca48dadd75a10..ada4b7860b3463e0c995d75d1e0ea648b45a06fe 100755 (executable)
@@ -150,7 +150,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.18/python/test/t_features.py
-${SOURCE_DIR}/openturns-1.18/python/test/t_features.py
+${PYTHONBIN} ${SOURCE_DIR}/openturns-1.18/python/test/t_features.py
 if [ $? -ne 0 ]
 then
     echo "ERROR  testing Openturns features...."