diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-08-24 00:23:23 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-08-24 10:37:25 -0700 |
commit | 97eee44e7d7db1622be74ab9554fc0240017eeeb (patch) | |
tree | c341c1d69370d1298868c9d71ec9fec8dfba4e2b | |
parent | 38ad9b2856d8ed2d2825e874e588883529af5609 (diff) | |
download | meta-openembedded-97eee44e7d7db1622be74ab9554fc0240017eeeb.tar.gz |
python3-pycocotools: Downgrade numpy version needed to 1.x
This is needed for it to build with PEP-517 backend, older backend
ignored the version
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pycocotools/0001-downgrade-numpy-version-to-1.26.4.patch | 26 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pycocotools_2.0.8.bb | 2 |
2 files changed, 28 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pycocotools/0001-downgrade-numpy-version-to-1.26.4.patch b/meta-python/recipes-devtools/python/python3-pycocotools/0001-downgrade-numpy-version-to-1.26.4.patch new file mode 100644 index 0000000000..cd3e462ddf --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pycocotools/0001-downgrade-numpy-version-to-1.26.4.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From 7222a8b9b6e05b89116ca14644aa8db79eecd3c6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 24 Aug 2024 00:19:23 -0700 | ||
4 | Subject: [PATCH] downgrade numpy version to 1.26.4+ | ||
5 | |||
6 | We can drop it when OE-core upgrades numpy to 2.x | ||
7 | |||
8 | Upstream-Status: Inappropriate [OE workaround] | ||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | pyproject.toml | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/pyproject.toml b/pyproject.toml | ||
15 | index 1bfbd91..cbee520 100644 | ||
16 | --- a/pyproject.toml | ||
17 | +++ b/pyproject.toml | ||
18 | @@ -1,7 +1,7 @@ | ||
19 | [build-system] | ||
20 | requires = [ | ||
21 | "cython>=0.27.3", | ||
22 | - "numpy>=2.0.0rc1", | ||
23 | + "numpy>=1.26.4", | ||
24 | "setuptools>=43.0.0", | ||
25 | "wheel", | ||
26 | ] | ||
diff --git a/meta-python/recipes-devtools/python/python3-pycocotools_2.0.8.bb b/meta-python/recipes-devtools/python/python3-pycocotools_2.0.8.bb index 47c750104e..7226f0fb81 100644 --- a/meta-python/recipes-devtools/python/python3-pycocotools_2.0.8.bb +++ b/meta-python/recipes-devtools/python/python3-pycocotools_2.0.8.bb | |||
@@ -5,6 +5,8 @@ LIC_FILES_CHKSUM = "file://pycocotools/coco.py;beginline=45;endline=45;md5=12cb5 | |||
5 | 5 | ||
6 | inherit pypi python_setuptools_build_meta | 6 | inherit pypi python_setuptools_build_meta |
7 | 7 | ||
8 | SRC_URI += "file://0001-downgrade-numpy-version-to-1.26.4.patch" | ||
9 | |||
8 | SRC_URI[sha256sum] = "8f2bcedb786ba26c367a3680f9c4eb5b2ad9dccb2b34eaeb205e0a021e1dfb8d" | 10 | SRC_URI[sha256sum] = "8f2bcedb786ba26c367a3680f9c4eb5b2ad9dccb2b34eaeb205e0a021e1dfb8d" |
9 | 11 | ||
10 | DEPENDS = "python3-cython-native python3-numpy-native virtual/crypt" | 12 | DEPENDS = "python3-cython-native python3-numpy-native virtual/crypt" |