]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
bos #41189 - openturns 1.21 bos/41189
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 19 Apr 2024 08:23:41 +0000 (10:23 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 19 Apr 2024 08:23:41 +0000 (10:23 +0200)
products/compil_scripts/openturns-1.21.bat

index e842974ccc8ec7291c83a6fce860d02911a01141..b030b447cbb2a2f605877e59928df8468cfced55 100644 (file)
@@ -266,7 +266,14 @@ if NOT %ERRORLEVEL% == 0 (
     exit 3
 )
 
-%PYTHON_ROOT_DIR%\python.exe -m pip install --cache-dir=%BUILD_DIR%\cache\pip --prefix=%PRODUCT_INSTALL% scikit-learn-0.24.2.tar.gz --no-deps --no-use-pep517
+if %PYTHON_VERSION% == 3.6 (
+  %PYTHON_ROOT_DIR%\python.exe -m pip install --cache-dir=%BUILD_DIR%\cache\pip --prefix=%PRODUCT_INSTALL% scikit-learn-0.24.2.tar.gz --no-deps  --no-use-pep517
+) else (
+  tar zxf scikit-learn-0.24.2.tar.gz
+  cd  scikit-learn-0.24.2
+  %PYTHON_ROOT_DIR%\python.exe setup.py install --prefix=%PRODUCT_INSTALL%
+)
+
 if NOT %ERRORLEVEL% == 0 (
     echo ERROR on python setup.py
     exit 3