]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #41854: Implement UB20.04
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 9 May 2024 10:12:39 +0000 (12:12 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 9 May 2024 10:12:39 +0000 (12:12 +0200)
applications/SALOME-master-native.pyconf
products/compil_scripts/h5py-3.11.0.sh
products/compil_scripts/meshio-5.3.5.sh
products/compil_scripts/rich-13.7.1.sh
products/netCDF4.pyconf
products/numpy.pyconf
products/patches/numpy-1.20.3.pO1.patch [new file with mode: 0644]
products/patches/numpy-1.20.3.pO2.patch [new file with mode: 0644]
products/patches/numpy-1.20.3.pO3.patch [new file with mode: 0644]
products/rich.pyconf
products/salome_system.pyconf

index 431497895f85a95674352dae54fd3ab89696f73e..e9c91a2c6ccfa77ceb96f13d8a01ef9ff9794a02 100644 (file)
@@ -217,6 +217,7 @@ __overwrite__ :
         'APPLICATION.products.netcdf'           : '4.6.2'
         'APPLICATION.products.PyFMI'            : {tag: '2.6',   base: 'no', section: 'version_2_6_no_pip'      }
         'APPLICATION.products.scipy'            : {tag: '1.5.2', base: 'no', section: 'version_1_5_2_no_pip'    } # scipy >= 1.4 - system one too old
+        'APPLICATION.products.numpy'            : {tag: '1.20.3', base: 'no', section: 'version_1_20_3'      }
     }
     {
         #
index 57fe56b7a9695d481d13060ef096abd07f35401f..492ae6597507fea1f4b1315e61e3bddb154c6eda 100755 (executable)
@@ -17,7 +17,7 @@ export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:$
 export PATH=${PRODUCT_INSTALL}/bin:$PATH
 
 case $LINUX_DISTRIBUTION in
-    FD32)
+    FD32|UB20*)
         WHEELS=('h5py-3.11.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl')
         for WHEEL in "${WHEELS[@]}"; do
             ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip  $SOURCE_DIR/$WHEEL --no-deps --prefix=$PRODUCT_INSTALL
index d7cd83fea88b44cfb824c19dae1a219aa058a738..0969028aa2c9ecbb4cafed3c5ef274817dab795c 100755 (executable)
@@ -16,7 +16,7 @@ export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:$
 export PATH=${PRODUCT_INSTALL}/bin:$PATH
 
 case $LINUX_DISTRIBUTION in
-    FD32)
+    FD32|UB20*)
         WHEELS=('markdown_it_py-3.0.0-py3-none-any.whl'
                 'typing_extensions-4.11.0-py3-none-any.whl'
                 'meshio-5.3.5-py3-none-any.whl'
index a693922d88086572cd142576ed29139c146b1bb1..ec1999230a06a862d8702cad4179a51f088c238b 100755 (executable)
@@ -4,6 +4,8 @@ echo "##########################################################################
 echo "rich" $VERSION
 echo "##########################################################################"
 
+LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION"
+
 if [ ! -d $PRODUCT_INSTALL ]; then
     mkdir -p $PRODUCT_INSTALL
 fi
@@ -12,11 +14,23 @@ rm -rf $BUILD_DIR
 mkdir -p $BUILD_DIR/cache/pip
 cd $BUILD_DIR
 
-${PYTHONBIN} -m pip install  --cache-dir=$BUILD_DIR/cache/pip $SOURCE_DIR/rich-13.7.1-py3-none-any.whl --no-deps  --prefix=$PRODUCT_INSTALL
-if [ $? -ne 0 ]; then
-    echo "FATAL: could not install rich 13.7.1"
-    exit 1
-fi
+case $LINUX_DISTRIBUTION in
+    FD32|UB20*)
+        WHEELS=('rich-13.7.1-py3-none-any.whl')
+        for WHEEL in "${WHEELS[@]}"; do
+            ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip  $SOURCE_DIR/$WHEEL --no-deps --prefix=$PRODUCT_INSTALL
+            if [ $? -ne 0 ]; then
+                echo "ERROR: could not install $WHEEL"
+                exit 1
+            fi
+        done
+        if [ -d ${PRODUCT_INSTALL}/lib64 ]; then
+            mv ${PRODUCT_INSTALL}/lib64 ${PRODUCT_INSTALL}/lib
+        fi
+        ;;
+    *)
+        ;;
+esac
 
 echo
 echo "########## END"
index 6488b6f36a86d8fff8aebbbebb4ba3ec030b6e8a..e260759c4d0ffd2aec9082882ebdc7b42086652e 100644 (file)
@@ -7,9 +7,9 @@ default :
     patches : []
     system_info : 
     {
-        rpm : []
+        rpm : ['python3-netcdf4']
         rpm_dev : []
-        apt : []
+        apt : ['python3-netcdf4']
         apt_dev : []
     }
     environ :
index 4e642f93e0cc29e02b8837a074de1f0d6e383709..a2786e04be9525e1c2d56183510d18991bf74dae 100755 (executable)
@@ -80,7 +80,7 @@ version_1_20_3:
       pip : "no"
     }
     compil_script : "numpy-1.20.3.sh"
-#    patches: ['SPNS-29988-numpy-1.22.patch']
+    patches: ['numpy-1.20.3.pO1.patch', 'numpy-1.20.3.pO2.patch', 'numpy-1.20.3.pO3.patch']
 }
 
 version_1_16_4_win_dbg:
diff --git a/products/patches/numpy-1.20.3.pO1.patch b/products/patches/numpy-1.20.3.pO1.patch
new file mode 100644 (file)
index 0000000..b10d8f4
--- /dev/null
@@ -0,0 +1,11 @@
+--- numpy-1.20.3_ref/pyproject.toml    2021-05-09 12:38:00.000000000 +0200
++++ numpy-1.20.3_dev/pyproject.toml    2024-05-09 11:50:44.909893215 +0200
+@@ -3,7 +3,7 @@
+ requires = [
+     "setuptools<49.2.0",
+     "wheel<=0.35.1",
+-    "Cython>=0.29.21,<3.0",  # Note: keep in sync with tools/cythonize.py
++    "Cython>=0.29.0,<3.0",  # Note: keep in sync with tools/cythonize.py
+ ]
diff --git a/products/patches/numpy-1.20.3.pO2.patch b/products/patches/numpy-1.20.3.pO2.patch
new file mode 100644 (file)
index 0000000..bea9616
--- /dev/null
@@ -0,0 +1,11 @@
+--- numpy-1.20.3_ref/tools/cythonize.py        2021-05-09 12:38:00.000000000 +0200
++++ numpy-1.20.3_dev/tools/cythonize.py        2024-05-09 11:49:05.948073244 +0200
+@@ -70,7 +70,7 @@
+         # other fixes in the 0.29 series that are needed even for earlier
+         # Python versions.
+         # Note: keep in sync with that in pyproject.toml
+-        required_version = LooseVersion('0.29.21')
++        required_version = LooseVersion('0.29.0')
+         if LooseVersion(cython_version) < required_version:
+             raise RuntimeError(f'Building {VENDOR} requires Cython >= {required_version}')
diff --git a/products/patches/numpy-1.20.3.pO3.patch b/products/patches/numpy-1.20.3.pO3.patch
new file mode 100644 (file)
index 0000000..f6ba88d
--- /dev/null
@@ -0,0 +1,11 @@
+--- numpy-1.20.3_ref/numpy/core/tests/test_cython.py   2021-05-08 20:35:28.000000000 +0200
++++ numpy-1.20.3_dev/numpy/core/tests/test_cython.py   2024-05-09 11:49:05.796070449 +0200
+@@ -19,7 +19,7 @@
+     # other fixes in the 0.29 series that are needed even for earlier
+     # Python versions.
+     # Note: keep in sync with the one in pyproject.toml
+-    required_version = LooseVersion("0.29.21")
++    required_version = LooseVersion("0.29.0")
+     if LooseVersion(cython_version) < required_version:
+         # too old or wrong cython, skip the test
+         cython = None
index c48960d6c6c6eab1a1499279b149d2c6528b9c86..5e2242f584f3853ef34c7ce3e4036608b21030d7 100644 (file)
@@ -30,6 +30,10 @@ default :
 
 version_13_7_1:
 {
+    archive_info :
+    {
+      archive_name  : "rich-13.7.1-x86_64.tar.gz"
+    }
     compil_script: "rich-13.7.1"  + $VARS.scriptExtension
     properties :
     {
index f6a8f3298721be44cdc43cfb6ca6e4b44cab7b06..de6c047db72e02e163f17bb2bb5bee9ef07adb3b 100644 (file)
@@ -128,7 +128,7 @@ default :
         {
             apt : ["libdc1394-22", "libopenexr24", "libwebp6", "libgfortran5", "libilmbase24", "libevent-2.1-7", "libpng16-16", "libgcc-9-dev",
                    "libffi7", "libtinfo6", "libgphoto2-port12", "libglx0", "libopengl0", "libzstd1", "libglvnd0", "openmpi-bin", "libgdal26", "libopenblas0-serial", "libtbb2",
-                   "libxml++2.6-2v5"]
+                   "libxml++2.6-2v5", "python3-netcdf4"]
             apt_dev : ["libtbb-dev", "cython3", "libfftw3-dev", "libopenblas-dev",
                        "qttools5-dev", "libqt5svg5-dev", "libqt5x11extras5-dev", "qtxmlpatterns5-dev-tools", "libopenmpi-dev",
                        "libpng-dev", "libtiff5-dev", "libgeotiff-dev", "libjpeg-dev", "libgif-dev", "libgeos-dev", "libsqlite3-dev", "libgdal-dev", "dvipng", "libxml++2.6-dev"]