From: Nabil Ghodbane Date: Tue, 15 Nov 2022 15:31:58 +0000 (+0100) Subject: statsmodels: fix typo and ensure that build directory exists X-Git-Tag: V9_11_0~186 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=be0c09f4e0c3012af924922189bccdeb189f6dee;p=tools%2Fsat_salome.git statsmodels: fix typo and ensure that build directory exists --- diff --git a/products/compil_scripts/statsmodels-0.6.1.sh b/products/compil_scripts/statsmodels-0.6.1.sh index ca8bc03..27ddc46 100755 --- a/products/compil_scripts/statsmodels-0.6.1.sh +++ b/products/compil_scripts/statsmodels-0.6.1.sh @@ -1,18 +1,15 @@ #!/bin/bash -#!/bin/bash - echo "##########################################################################" echo "statsmodels " $VERSION echo "##########################################################################" -echo "*** build in SOURCE directory" - - +rm -rf $BUILD_DIR +mkdir $BUILD_DIR cd $BUILD_DIR cp -R $SOURCE_DIR/* . -if [[ $DIST_NAME == "CO" && $DIST_VERSION == "8" && $APPLICATION_NAME =~ native ]]; then +if [[ $DIST_NAME == "CO" && $DIST_VERSION == "8" && "$SAT_Python_IS_NATIVE" == "1" ]]; then PRODUCT_LIB=lib64 else PRODUCT_LIB=lib @@ -24,7 +21,6 @@ export PYTHONPATH=${PRODUCT_INSTALL}/${PRODUCT_LIB}/python${PYTHON_VERSION}/site echo echo "*** build with $PYTHONBIN" -###$PYTHONBIN setup.py clean $PYTHONBIN setup.py build if [ $? -ne 0 ] then diff --git a/products/compil_scripts/statsmodels-0.8.0.sh b/products/compil_scripts/statsmodels-0.8.0.sh index ca8bc03..0317184 100755 --- a/products/compil_scripts/statsmodels-0.8.0.sh +++ b/products/compil_scripts/statsmodels-0.8.0.sh @@ -1,18 +1,15 @@ -#!/bin/bash - #!/bin/bash echo "##########################################################################" echo "statsmodels " $VERSION echo "##########################################################################" -echo "*** build in SOURCE directory" - - +rm -rf $BUILD_DIR +mkdir $BUILD_DIR cd $BUILD_DIR cp -R $SOURCE_DIR/* . -if [[ $DIST_NAME == "CO" && $DIST_VERSION == "8" && $APPLICATION_NAME =~ native ]]; then +if [[ $DIST_NAME == "CO" && $DIST_VERSION == "8" && "$SAT_Python_IS_NATIVE" == "1" ]]; then PRODUCT_LIB=lib64 else PRODUCT_LIB=lib @@ -24,7 +21,6 @@ export PYTHONPATH=${PRODUCT_INSTALL}/${PRODUCT_LIB}/python${PYTHON_VERSION}/site echo echo "*** build with $PYTHONBIN" -###$PYTHONBIN setup.py clean $PYTHONBIN setup.py build if [ $? -ne 0 ] then