summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2024-11-07 17:29:01 +0000
committerKhem Raj <raj.khem@gmail.com>2024-11-19 13:50:56 -0800
commit5c19beb0bb1bd81cddb8c9417fd58daf8c28eb2f (patch)
tree164d17faad4aee4b8d399c3f8e9ec6424c5d8205
parent16ee3e865cbfe5a1519bba9804a9fde609f0bf90 (diff)
downloadmeta-openembedded-5c19beb0bb1bd81cddb8c9417fd58daf8c28eb2f.tar.gz
python3-pycocotools: inherit cython class
Use the new cython class to avoid duplicated fixup code to remove build paths. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-python/recipes-devtools/python/python3-pycocotools_2.0.8.bb8
1 files changed, 2 insertions, 6 deletions
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 4d4251316c..e298dbf574 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
@@ -3,15 +3,11 @@ SUMMARY = "COCO is a large image dataset designed for object detection, segmenta
3LICENSE = "BSD-2-Clause" 3LICENSE = "BSD-2-Clause"
4LIC_FILES_CHKSUM = "file://pycocotools/coco.py;beginline=45;endline=45;md5=12cb539683cf245df8b6ce782d78f647" 4LIC_FILES_CHKSUM = "file://pycocotools/coco.py;beginline=45;endline=45;md5=12cb539683cf245df8b6ce782d78f647"
5 5
6inherit pypi python_setuptools_build_meta 6inherit pypi python_setuptools_build_meta cython
7 7
8SRC_URI += "file://0001-downgrade-numpy-version-to-1.26.4.patch" 8SRC_URI += "file://0001-downgrade-numpy-version-to-1.26.4.patch"
9 9
10SRC_URI[sha256sum] = "8f2bcedb786ba26c367a3680f9c4eb5b2ad9dccb2b34eaeb205e0a021e1dfb8d" 10SRC_URI[sha256sum] = "8f2bcedb786ba26c367a3680f9c4eb5b2ad9dccb2b34eaeb205e0a021e1dfb8d"
11 11
12DEPENDS = "python3-cython-native python3-numpy-native virtual/crypt" 12DEPENDS = "python3-numpy-native virtual/crypt"
13RDEPENDS:${PN} = "python3-matplotlib python3-pillow python3-profile" 13RDEPENDS:${PN} = "python3-matplotlib python3-pillow python3-profile"
14
15do_compile:append() {
16 sed -i -e "/BEGIN: Cython Metadata/,/END: Cython Metadata/d" ${B}/pycocotools/_mask.c
17}