]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #29973: config files and compil script for C3PO v2.3
authorGuytri KASTANE <guytri.kastane@cea.fr>
Mon, 22 Apr 2024 11:29:12 +0000 (13:29 +0200)
committerGuytri KASTANE <guytri.kastane@cea.fr>
Mon, 22 Apr 2024 11:29:12 +0000 (13:29 +0200)
applications/SALOME-master-native.pyconf
applications/SALOME-master.pyconf
products/C3PO.pyconf
products/compil_scripts/C3PO-v2.3.sh [new file with mode: 0755]

index e22957385b18a57fbd1e4b3bb17c778743668290..85180f4fa5f85f3a9efa0cc9d5f24780c6792f2e 100644 (file)
@@ -40,7 +40,7 @@ APPLICATION :
         boost : 'native'
         CAS : {tag : 'V7_5_3p5', section: 'version_CR753_SALOME_PATCH', base: 'no'}
         catalyst: '2.0'
-        C3PO: 'v2.0'
+        C3PO: 'v2.3'
         certifi : 'native'
         cgns : '4.2.0'
         chardet : 'native'
index ae57723fc33e0387b5ad2dfcf8b6e5d608889cfc..8c2b943de896ec8198ddbc6016aaa4b468798444 100644 (file)
@@ -41,7 +41,7 @@ APPLICATION :
         boost : '1.71.0'
         CAS : {tag : 'V7_5_3p5', section: 'version_CR753_SALOME_PATCH', base: 'no'}
         catalyst: '2.0'
-        C3PO: 'v2.0'
+        C3PO: 'v2.3'
         certifi : '2018.8.24'
         cgns : '4.2.0'
         chardet : '3.0.4'
index 4caf277bb098db91363b52d37e287ab98967f17b..e6487b4c15fcb2ff03f06d9b15d565559c9ed7ac 100644 (file)
@@ -30,6 +30,10 @@ default :
     patches: []
  }
 
+version_v2_3 :
+{
+    compil_script  : "C3PO-v2.3.sh"
+}
 version_v2_0 :
 {
     patches: ['C3PO-v2.0.patch']
diff --git a/products/compil_scripts/C3PO-v2.3.sh b/products/compil_scripts/C3PO-v2.3.sh
new file mode 100755 (executable)
index 0000000..32f6a27
--- /dev/null
@@ -0,0 +1,46 @@
+#!/bin/bash
+
+echo "##########################################################################"
+echo "C3PO $VERSION"
+echo "##########################################################################"
+
+rm -rf "${BUILD_DIR}"
+mkdir "${BUILD_DIR}"
+cd "${BUILD_DIR}" || { echo "cd ${BUILD_DIR} fails"; exit 1; }
+cp -r "${SOURCE_DIR}"/* .
+
+echo
+echo "*** install with ${PYTHONBIN} -m pip install . --prefix=${PRODUCT_INSTALL} --cache-dir=${BUILD_DIR}/cache/pip"
+if ! ${PYTHONBIN} -m pip install . --prefix="${PRODUCT_INSTALL}" --cache-dir="${BUILD_DIR}/cache/pip"; then
+    echo "pip install C3PO fails"
+    exit 2
+fi
+
+if [ "${SAT_Python_IS_NATIVE}" == "1" ]; then
+    PYTEST=$(which pytest)
+fi
+
+if [ "${SAT_Python_IS_NATIVE}" != "1" ] || [ -z "${PYTEST}" ]; then
+    echo
+    echo "*** install with $PYTHONBIN -m pip install ${BUILD_DIR}/ext/pytest-8.1.1.tar.gz --cache-dir=${BUILD_DIR}/cache/pip"
+    if ! ${PYTHONBIN} -m pip install "${BUILD_DIR}/ext/pytest-8.1.1.tar.gz" --prefix="${PRODUCT_INSTALL}" --cache-dir="${BUILD_DIR}/cache/pip"; then
+        echo "pip install pytest fails"
+        echo 3
+    fi
+    export PATH="${PRODUCT_INSTALL}/bin":$PATH
+fi
+
+echo
+echo "*** running C3PO non-regression tests"
+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="${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:${PYTHONPATH}"
+
+if ! "${BUILD_DIR}"/run_tests.sh; then
+    echo "C3PO non-regression tests fails"
+    exit 3
+fi
+
+echo
+echo "########## END"