]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
C3PO: bug fix
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 16 May 2022 12:06:20 +0000 (14:06 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 16 May 2022 12:06:20 +0000 (14:06 +0200)
products/compil_scripts/C3PO.sh

index a74e9dcabfc870dcd413f9d4c0b4c4be2b789e6a..5a3a503820591dbe045ff61ee4c672f7916ac7b2 100755 (executable)
@@ -4,8 +4,10 @@ echo "##########################################################################
 echo "C3PO" $VERSION
 echo "##########################################################################"
 
-echo  "*** build in SOURCE directory"
-cd $SOURCE_DIR
+rm -rf $BUILD_DIR
+mkdir $BUILD_DIR
+cd $BUILD_DIR
+cp -r $SOURCE_DIR/* .
 
 mkdir -p $PRODUCT_INSTALL/lib/python${PYTHON_VERSION:0:3}/site-packages
 export PATH=${PRODUCT_INSTALL}/bin:$PATH
@@ -14,18 +16,26 @@ export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION:0:3}/site-packag
 
 echo
 echo "*** build and install with $PYTHONBIN sources/setup.py install --prefix=$PRODUCT_INSTALL"
-$PYTHONBIN sources/setup.py install --prefix=$PRODUCT_INSTALL
+cd sources
+$PYTHONBIN ./setup.py build
 if [ $? -ne 0 ]
 then
-    echo "ERROR on build/install"
+    echo "ERROR on build"
     exit 3
 fi
-cd $SOURCE_DIR
+
+$PYTHONBIN ./setup.py install --prefix=$PRODUCT_INSTALL
+if [ $? -ne 0 ]
+then
+    echo "ERROR on install"
+    exit 4
+fi
 
 export LD_LIBRARY_PATH="${MEDCOUPLING_ROOT_DIR}/lib:${LD_LIBRARY_PATH}"
 export PYTHONPATH="${MEDCOUPLING_ROOT_DIR}/${PYTHON_LIBDIR}:${PYTHONPATH}"
 export PYTHONPATH="${MEDCOUPLING_ROOT_DIR}/lib:${PYTHONPATH}"
 export PYTHONPATH="${MEDCOUPLING_ROOT_DIR}/bin:${PYTHONPATH}"
+cd $BUILD_DIR
 if [ -n "$MPI_ROOT_DIR" ]; then
     ctest .
 else