]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
Add new compile script for CO9
authorGuytri KASTANE <guytri.kastane@cea.fr>
Tue, 17 Oct 2023 09:42:04 +0000 (11:42 +0200)
committerGuytri KASTANE <guytri.kastane@cea.fr>
Tue, 17 Oct 2023 09:42:04 +0000 (11:42 +0200)
products/compil_scripts/nose-1.3.7.sh [new file with mode: 0755]
products/compil_scripts/numpydoc-0.9.0.sh [new file with mode: 0755]
products/compil_scripts/pandas-1.1.5.sh [new file with mode: 0755]

diff --git a/products/compil_scripts/nose-1.3.7.sh b/products/compil_scripts/nose-1.3.7.sh
new file mode 100755 (executable)
index 0000000..eb8d187
--- /dev/null
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+echo "##########################################################################"
+echo "Nose " $VERSION
+echo "##########################################################################"
+
+echo  "*** build in SOURCE directory"
+
+cd $BUILD_DIR
+cp -R $SOURCE_DIR/* .
+
+export PATH=$(pwd)/bin:$PATH
+export PYTHONPATH=$(pwd):$PYTHONPATH
+
+echo
+echo "*** install with $PYTHONBIN"
+$PYTHONBIN -m pip install --cache-dir=$BUILD_DIR/cache/pip  .  --no-deps --prefix=$PRODUCT_INSTALL 
+if [ $? -ne 0 ]
+then
+    echo "ERROR on install"
+    exit 3
+fi
+
+# ensure that lib is used
+if [ -d "$PRODUCT_INSTALL/lib64" ]; then
+    echo "WARNING: renaming lib64 directory to lib"
+    mv $PRODUCT_INSTALL/lib64 $PRODUCT_INSTALL/lib
+elif [ -d "$PRODUCT_INSTALL/local/lib64" ]; then
+    echo "WARNING: renaming local/lib64 directory to lib"
+    mv $PRODUCT_INSTALL/local/lib64 $PRODUCT_INSTALL/lib
+    rm -rf $PRODUCT_INSTALL/local
+fi
+
+echo
+echo "########## END"
diff --git a/products/compil_scripts/numpydoc-0.9.0.sh b/products/compil_scripts/numpydoc-0.9.0.sh
new file mode 100755 (executable)
index 0000000..6a62728
--- /dev/null
@@ -0,0 +1,47 @@
+#!/bin/bash
+
+#!/bin/bash                                                                                                                                                                              
+
+echo "##########################################################################"
+echo "NumPy Doc " $VERSION
+echo "##########################################################################"
+
+echo  "*** build in SOURCE directory"
+
+
+cd $BUILD_DIR
+cp -R $SOURCE_DIR/* .
+
+export PATH=$(pwd)/bin:$PATH
+export PYTHONPATH=$(pwd):$PYTHONPATH
+
+echo
+echo "*** build with $PYTHONBIN"
+$PYTHONBIN setup.py build
+if [ $? -ne 0 ]
+then
+    echo "ERROR on build"
+    exit 2
+fi
+
+echo
+echo "*** install with $PYTHONBIN"
+$PYTHONBIN setup.py install --prefix=$PRODUCT_INSTALL 
+if [ $? -ne 0 ]
+then
+    echo "ERROR on install"
+    exit 3
+fi
+
+# ensure that lib is used
+if [ -d "$PRODUCT_INSTALL/lib64" ]; then
+    echo "WARNING: renaming lib64 directory to lib"
+    mv $PRODUCT_INSTALL/lib64 $PRODUCT_INSTALL/lib
+elif [ -d "$PRODUCT_INSTALL/local/lib64" ]; then
+    echo "WARNING: renaming local/lib64 directory to lib"
+    mv $PRODUCT_INSTALL/local/lib64 $PRODUCT_INSTALL/lib
+    rm -rf $PRODUCT_INSTALL/local
+fi
+
+echo
+echo "########## END"
diff --git a/products/compil_scripts/pandas-1.1.5.sh b/products/compil_scripts/pandas-1.1.5.sh
new file mode 100755 (executable)
index 0000000..a16626f
--- /dev/null
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+echo "##########################################################################"
+echo "Pandas " $VERSION
+echo "##########################################################################"
+
+echo  "*** build in SOURCE directory"
+
+cd $BUILD_DIR
+cp -R $SOURCE_DIR/* .
+
+export PATH=$(pwd)/bin:$PATH
+export PYTHONPATH=$(pwd):$PYTHONPATH
+
+echo
+echo "*** install with $PYTHONBIN"
+$PYTHONBIN -m pip install --cache-dir=$BUILD_DIR/cache/pip  .  --no-deps --prefix=$PRODUCT_INSTALL 
+if [ $? -ne 0 ]
+then
+    echo "ERROR on install"
+    exit 3
+fi
+
+# ensure that lib is used
+if [ -d "$PRODUCT_INSTALL/lib64" ]; then
+    echo "WARNING: renaming lib64 directory to lib"
+    mv $PRODUCT_INSTALL/lib64 $PRODUCT_INSTALL/lib
+elif [ -d "$PRODUCT_INSTALL/local/lib64" ]; then
+    echo "WARNING: renaming local/lib64 directory to lib"
+    mv $PRODUCT_INSTALL/local/lib64 $PRODUCT_INSTALL/lib
+    rm -rf $PRODUCT_INSTALL/local
+fi
+
+echo
+echo "########## END"