From be0c09f4e0c3012af924922189bccdeb189f6dee Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Tue, 15 Nov 2022 16:31:58 +0100 Subject: [PATCH] statsmodels: fix typo and ensure that build directory exists --- products/compil_scripts/statsmodels-0.6.1.sh | 10 +++------- products/compil_scripts/statsmodels-0.8.0.sh | 10 +++------- 2 files changed, 6 insertions(+), 14 deletions(-) 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 -- 2.39.2