'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' }
}
{
#
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
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'
echo "rich" $VERSION
echo "##########################################################################"
+LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION"
+
if [ ! -d $PRODUCT_INSTALL ]; then
mkdir -p $PRODUCT_INSTALL
fi
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"
patches : []
system_info :
{
- rpm : []
+ rpm : ['python3-netcdf4']
rpm_dev : []
- apt : []
+ apt : ['python3-netcdf4']
apt_dev : []
}
environ :
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:
--- /dev/null
+--- 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
+ ]
+
+
--- /dev/null
+--- 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}')
--- /dev/null
+--- 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
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 :
{
{
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"]