]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
bos #34671: Rocky 8: ensure libOT.so links to clbas. Use pip instead of python such...
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 28 Sep 2023 07:25:24 +0000 (09:25 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 28 Sep 2023 07:25:24 +0000 (09:25 +0200)
applications/SALOME-master-native.pyconf
products/compil_scripts/openturns-1.21.sh
products/openturns.pyconf
products/patches/openturns-1.21.0005.patch [new file with mode: 0644]
products/patches/openturns-1.21.0006.patch [new file with mode: 0644]

index bae1cf28df9496329cc70922e48cd9e598949e41..b050f366141a25e5b1a6beb270156c7cb51b530d 100644 (file)
@@ -263,6 +263,7 @@ __overwrite__ :
         'APPLICATION.products.statsmodels'      : {tag: '0.6.1',  base: 'no', section: 'version_0_6_1_no_pip'   }
         'APPLICATION.products.gdal'             : {tag:'2.4.0',   base: 'no', section: 'version_2_4_0_CO8'      } # spns #29324
         'APPLICATION.products.swig'             : '4.0.2'
+        'APPLICATION.products.openturns'        : {tag: '1.21',  base: 'no', section: 'version_1_21_RO8'        }
     }
     {
         __condition__ : "VARS.dist in ['FD32']"
index 3a05fa2e61d57e7358310fef48da7142629eef67..071408efb3b9f443f4c3a7e218532d14af832bc9 100755 (executable)
@@ -365,18 +365,26 @@ if [[ -d "$SOURCE_DIR/otfftw-0.13" ]]; then
         cd ${BUILD_DIR}/$k
         cp -R $SOURCE_DIR/$k-${OTP[$k]}/* .
         #
-        $PYTHONBIN setup.py build
-        if [ $? -ne 0 ]
-        then
-            echo "ERROR on ${PYTHONBIN} setup.py  build"
-            exit 4
-        fi
-        #
-        $PYTHONBIN setup.py install --prefix=$PRODUCT_INSTALL
-        if [ $? -ne 0 ]
-        then
-            echo "ERROR on ${PYTHONBIN} setup.py  install --prefix=$PRODUCT_INSTALL"
-            exit 5
+        if [ $k == "otpod" ]; then
+            ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip . --no-deps  --prefix=$PRODUCT_INSTALL
+            if [ $? -ne 0 ]; then
+                echo "ERROR on ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip . --no-deps  --prefix=$PRODUCT_INSTALL"
+                exit 4
+            fi
+        else
+            $PYTHONBIN setup.py build
+            if [ $? -ne 0 ]
+            then
+                echo "ERROR on ${PYTHONBIN} setup.py  build"
+                exit 4
+            fi
+            #
+            $PYTHONBIN setup.py install --prefix=$PRODUCT_INSTALL
+            if [ $? -ne 0 ]
+            then
+                echo "ERROR on ${PYTHONBIN} setup.py  install --prefix=$PRODUCT_INSTALL"
+                exit 5
+            fi
         fi
     done
 
index 1edab05c6367919ac073dc7f3ad5caabbeb47dfc..f1fd4e6829174edae4f59a4a968baa2bbedce4c1 100644 (file)
@@ -39,7 +39,7 @@ default_win :
 version_1_21 :
 {
     compil_script :  "openturns-1.21.sh"
-    patches : ['openturns-1.21.0001.patch']
+    patches : ['openturns-1.21.0001.patch', 'openturns-1.21.0005.patch']
     depend : ['Python', 'lapack', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'matplotlib', 'cminpack', 'FMILibrary', 'PyFMI', 'boost']
     opt_depend : ['pandas', 'statsmodels', 'patsy']
 }
@@ -60,10 +60,18 @@ version_1_21_win :
     }
 }
 
+version_1_21_RO8 :
+{
+    compil_script :  "openturns-1.21.sh"
+    patches : ['openturns-1.21.0001.patch','openturns-1.21.0005.patch', openturns-1.21.0006.patch']
+    depend : ['Python', 'lapack', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'matplotlib', 'cminpack', 'FMILibrary', 'PyFMI', 'boost']
+    opt_depend : ['pandas', 'statsmodels', 'patsy']
+}
+
 version_1_21_CO8 :
 {
     compil_script :  "openturns-1.21.sh"
-    patches : ['openturns-1.21.0002.patch']
+    patches : ['openturns-1.21.0002.patch', 'openturns-1.21.0005.patch']
     depend : ['Python', 'lapack', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'matplotlib', 'cminpack', 'FMILibrary', 'PyFMI', 'boost']
     opt_depend : ['pandas', 'statsmodels', 'patsy']
 }
diff --git a/products/patches/openturns-1.21.0005.patch b/products/patches/openturns-1.21.0005.patch
new file mode 100644 (file)
index 0000000..5658d42
--- /dev/null
@@ -0,0 +1,11 @@
+--- openturns_ref/otpod-0.6.10/setup.py        2023-09-27 10:10:35.955815409 +0200
++++ openturns_dev/otpod-0.6.10/setup.py        2023-09-27 10:10:22.311812375 +0200
+@@ -12,7 +12,7 @@
+ install_requires=['statsmodels>=0.6.1',
+                   'numpy>=1.10.4',
+-                  'scikit-learn>=0.17',
++                  'scikit-learn==0.24.2',
+                   'matplotlib>=1.5.1',
+                   'scipy>=0.17.0',
+                   'decorator>=4.0.9']
diff --git a/products/patches/openturns-1.21.0006.patch b/products/patches/openturns-1.21.0006.patch
new file mode 100644 (file)
index 0000000..f06c5f9
--- /dev/null
@@ -0,0 +1,11 @@
+--- openturns-1.21_ref/openturns-1.21/lib/src/CMakeLists.txt   2023-09-13 14:59:41.000000000 +0200
++++ openturns-1.21_dev/openturns-1.21/lib/src/CMakeLists.txt   2023-09-28 09:07:58.286148187 +0200
+@@ -93,7 +93,7 @@
+   add_dependencies (OT generate_csv_parser)
+ endif ()
+-target_link_libraries (OT PUBLIC ${OPENTURNS_LIBRARIES})
++target_link_libraries (OT PUBLIC ${OPENTURNS_LIBRARIES} ${BLAS_LIBRARIES} ${CBLAS_LIBRARIES})
+ target_link_libraries (OT PRIVATE ${OPENTURNS_PRIVATE_LIBRARIES})
+ target_include_directories (OT INTERFACE $<INSTALL_INTERFACE:include>)