]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
statsmodels: fix typo and ensure that build directory exists
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 15 Nov 2022 15:31:58 +0000 (16:31 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 15 Nov 2022 15:31:58 +0000 (16:31 +0100)
products/compil_scripts/statsmodels-0.6.1.sh
products/compil_scripts/statsmodels-0.8.0.sh

index ca8bc0361ff30af3fdd264344117ba3d2d0ff6a1..27ddc467b6b651cd8a7cd5cc854343b5a96eb697 100755 (executable)
@@ -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
index ca8bc0361ff30af3fdd264344117ba3d2d0ff6a1..0317184dd348732007b9f3268771f62e556564d0 100755 (executable)
@@ -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