]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #41606: add sections for py3.6 and py3.9 in openturns 1.22 compil script for... gk782450/openturns_1_22_for_embedded
authorGuytri KASTANE <guytri.kastane@cea.fr>
Mon, 29 Apr 2024 07:26:39 +0000 (09:26 +0200)
committerGuytri KASTANE <guytri.kastane@cea.fr>
Mon, 29 Apr 2024 07:26:39 +0000 (09:26 +0200)
products/compil_scripts/openturns-1.22.sh

index ced175d952790506e6b7e24387fbed11d205a07a..98ccb5461278e0349e705fa2fd416041b7062afe 100755 (executable)
@@ -437,12 +437,22 @@ if [[ -d "$SOURCE_DIR/otfftw-0.14" ]]; then
                     echo "FATAL: could not install decorator-5.1.0"
                     exit 6
                 fi
-                echo "INFO: install scikit-learn-0.24.2"
-                ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip $SOURCE_DIR/scikit-learn-0.24.2/scikit-learn-0.24.2.tar.gz --no-deps
-                if [ $? -ne 0 ]
-                then
-                    echo "FATAL: could not install scikit-0.24.2"
-                    exit 6
+                if [ "${PYTHON_VERSION}" == "3.6" ]; then
+                    echo "INFO: install scikit-learn-0.24.2"
+                    ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip $SOURCE_DIR/scikit-learn-0.24.2/scikit-learn-0.24.2.tar.gz --no-deps
+                    if [ $? -ne 0 ]
+                    then
+                        echo "FATAL: could not install scikit-0.24.2"
+                        exit 6
+                    fi
+                elif [ "${PYTHON_VERSION}" == "3.9" ]; then
+                    echo "INFO: install scikit-learn-1.2.2"
+                    ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip $SOURCE_DIR/scikit-learn-1.2.2/scikit-learn-1.2.2.tar.gz --no-deps
+                    if [ $? -ne 0 ]
+                    then
+                        echo "FATAL: could not install scikit-1.2.2"
+                        exit 6
+                    fi
                 fi
             fi
         fi
@@ -544,6 +554,8 @@ if [[ -d "$SOURCE_DIR/otfftw-0.14" ]]; then
         fi
     elif [ -f ${PYTHON_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/setuptools/site-patch.py ]; then
         cp ${PYTHON_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/setuptools/site-patch.py ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages/site.py
+    elif [ -f ${PYTHON_ROOT_DIR}/lib/python${PYTHON_VERSION}/site.py ]; then
+        cp ${PYTHON_ROOT_DIR}/lib/python${PYTHON_VERSION}/site.py ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages/site.py
     else
         echo "ERROR: could not find site-patch.py"
         exit 7