summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2023-05-11 00:26:17 +0800
committerJosef Schlehofer <pepe.schlehofer@gmail.com>2023-11-02 11:20:25 +0100
commitca0cbe1e97494b6c47347ed1887dda4cbddaba87 (patch)
tree7c66212ef2f77f8573853c6b97e1ee1c45ab6eb7
parent82cbf130ed8a0f5348d873ccd22aabe5fbf1c7f9 (diff)
numpy: Fix pyproject.toml-based build
The versions of setuptools and wheel pinned in pyproject.toml are older than the versions available in the packages repo. This unpins the versions so that the build can proceed. Signed-off-by: Jeffery To <jeffery.to@gmail.com> (cherry picked from commit 8d331953f34a1ed231cb24893c68606813c36824)
-rw-r--r--lang/python/numpy/Makefile2
-rw-r--r--lang/python/numpy/patches/001-unpin-build-dependencies.patch13
2 files changed, 14 insertions, 1 deletions
diff --git a/lang/python/numpy/Makefile b/lang/python/numpy/Makefile
index 35aab8d79..aaf940879 100644
--- a/lang/python/numpy/Makefile
+++ b/lang/python/numpy/Makefile
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=numpy
PKG_VERSION:=1.23.3
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PYPI_NAME:=$(PKG_NAME)
PKG_HASH:=51bf49c0cd1d52be0a240aa66f3458afc4b95d8993d2d04f0d91fa60c10af6cd
diff --git a/lang/python/numpy/patches/001-unpin-build-dependencies.patch b/lang/python/numpy/patches/001-unpin-build-dependencies.patch
new file mode 100644
index 000000000..c167f0729
--- /dev/null
+++ b/lang/python/numpy/patches/001-unpin-build-dependencies.patch
@@ -0,0 +1,13 @@
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -2,8 +2,8 @@
+ # Minimum requirements for the build system to execute.
+ requires = [
+ "packaging==20.5; platform_machine=='arm64'", # macos M1
+- "setuptools==59.2.0",
+- "wheel==0.37.0",
++ "setuptools>=59.2.0",
++ "wheel>=0.37.0",
+ "Cython>=0.29.30,<3.0",
+ ]
+