Append pythonbin on somme commande in order to build on system where there are both python2 and python3
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"
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"
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...."