numpy: update to version 1.26.2
authorAndy Syam <privasisource@gmail.com>
Fri, 22 Dec 2023 13:52:35 +0000 (21:52 +0800)
committerRosen Penev <rosenp@gmail.com>
Wed, 3 Jan 2024 03:34:05 +0000 (19:34 -0800)
https://github.com/numpy/numpy/releases

NumPy 1.26.2 Release Notes
NumPy 1.26.2 is a maintenance release that fixes bugs and regressions
discovered after the 1.26.1 release. The 1.26.release series is the last
planned minor release series before NumPy 2.0. The Python versions
supported by this release are 3.9-3.12.

Signed-off-by: Andy Syam <privasisource@gmail.com>
lang/python/numpy/Makefile
lang/python/numpy/patches/001-unpin-build-dependencies.patch [deleted file]
lang/python/numpy/patches/002-avoid-build-user-config-files.patch
lang/python/numpy/patches/003-without-vendored-meson.patch [new file with mode: 0644]

index 4b319b59a8dc80c546c59ec3110fbe6fa7ab2971..1e0291a8d95c99db233379892e409a79888dc3ca 100644 (file)
@@ -6,11 +6,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=numpy
-PKG_VERSION:=1.25.2
+PKG_VERSION:=1.26.2
 PKG_RELEASE:=1
 
 PYPI_NAME:=$(PKG_NAME)
-PKG_HASH:=fd608e19c8d7c55021dffd43bfe5492fab8cc105cc8986f813f8c3c048b38760
+PKG_HASH:=f65738447676ab5777f11e6bbbdb8ce11b785e105f690bc45966574816b6d3ea
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 
@@ -21,7 +21,7 @@ PKG_CPE_ID:=cpe:/a:numpy:numpy
 PKG_CONFIG_DEPENDS:= \
         CONFIG_NUMPY_OPENBLAS_SUPPORT
 
-PKG_BUILD_DEPENDS:=python-cython/host
+PKG_BUILD_DEPENDS:=python-cython/host pyproject-metadata/host
 
 # Ensure numpy does not find openblas if openblas support is not enabled
 PYTHON3_PKG_BUILD_VARS:= \
diff --git a/lang/python/numpy/patches/001-unpin-build-dependencies.patch b/lang/python/numpy/patches/001-unpin-build-dependencies.patch
deleted file mode 100644 (file)
index dbfaea5..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -4,11 +4,11 @@
- #build-backend = "mesonpy"
- requires = [
-     # setuptools, wheel and Cython are needed for the setup.py based build
--    "setuptools==59.2.0",
-+    "setuptools>=59.2.0",
-     # `wheel` is needed for non-isolated builds, given that `meson-python`
-     # doesn't list it as a runtime requirement (at least in 0.11.0) - it's
-     # likely to be removed as a dependency in meson-python 0.12.0.
--    "wheel==0.38.1",
-+    "wheel>=0.38.1",
-     "Cython>=0.29.34,<3.0",
- #    "meson-python>=0.10.0",
- ]
index cf7faf4edc3b6bda09c2952199ac18897e9ee50a..c3d70207e262692adbb54fd5379002587f1fafc0 100644 (file)
@@ -1,6 +1,6 @@
 --- a/numpy/distutils/system_info.py
 +++ b/numpy/distutils/system_info.py
-@@ -403,7 +403,7 @@ def get_standard_file(fname):
+@@ -404,7 +404,7 @@ def get_standard_file(fname):
          pass
      else:
          user_file = os.path.join(f, fname)
diff --git a/lang/python/numpy/patches/003-without-vendored-meson.patch b/lang/python/numpy/patches/003-without-vendored-meson.patch
new file mode 100644 (file)
index 0000000..ef6761b
--- /dev/null
@@ -0,0 +1,22 @@
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,6 +1,6 @@
+ [build-system]
+-build-backend = "mesonpy"
+-backend-path = ['./vendored-meson/meson-python']
++#build-backend = "mesonpy"
++#backend-path = ['./vendored-meson/meson-python']
+ requires = [
+     "Cython>=0.29.34,<3.1",
+     # All dependencies of the vendored meson-python (except for meson, because
+@@ -194,8 +194,8 @@ repair-wheel-command = ""
+ [tool.spin]
+ package = 'numpy'
+-[tool.spin.meson]
+-cli = 'vendored-meson/meson/meson.py'
++#[tool.spin.meson]
++#cli = 'vendored-meson/meson/meson.py'
+ [tool.spin.commands]
+ "Build" = [