]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
embed scikitlearn-1.2.2 binary wheel if MPI full build
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 22 Aug 2024 15:16:09 +0000 (17:16 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 23 Aug 2024 09:05:09 +0000 (11:05 +0200)
products/compil_scripts/openturns-1.22.sh

index 1c7bc3fb4a4247e71ebaa357702f024b2c44845a..e21d367b7f5bd42eb8f1581d80fba580db01786e 100755 (executable)
@@ -447,7 +447,11 @@ if [[ -d "$SOURCE_DIR/otfftw-0.14" ]]; then
                     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 [ -n "$SAT_HPC" ] && [ -n "$MPI_ROOT_DIR" ]; then
+                        ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip  $SOURCE_DIR/scikit-learn-1.2.2/scikit_learn-1.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl --no-deps
+                    else
+                        ${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
+                    fi
                     if [ $? -ne 0 ]
                     then
                         echo "FATAL: could not install scikit-1.2.2"