diff mbox series

[14/21] python3-pyproj: inherit cython class

Message ID 20241114220009.737413-14-ross.burton@arm.com
State New
Headers show
Series [01/21] blueman: inherit cython class | expand

Commit Message

Ross Burton Nov. 14, 2024, 10 p.m. UTC
Use the new cython class to avoid duplicated fixup code to remove build
paths.

Also clean up DEPENDS: all variations need target proj and proj-native.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 .../recipes-devtools/python/python3-pyproj_3.7.0.bb | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pyproj_3.7.0.bb b/meta-python/recipes-devtools/python/python3-pyproj_3.7.0.bb
index 0a8b710849..57ad3eb8ce 100644
--- a/meta-python/recipes-devtools/python/python3-pyproj_3.7.0.bb
+++ b/meta-python/recipes-devtools/python/python3-pyproj_3.7.0.bb
@@ -1,10 +1,9 @@ 
 SUMMARY = "Python interface to PROJ (cartographic projections and coordinate transformations library)"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=3f3574263859ef2dc9bd7817d51adbaa"
-DEPENDS = "python3-cython proj"
-DEPENDS:append:class-target = " python3-cython-native proj-native"
+DEPENDS = "proj-native proj"
 
-inherit pypi python_setuptools_build_meta
+inherit pypi python_setuptools_build_meta cython
 
 SRC_URI += "file://rpath.patch"
 
@@ -21,11 +20,3 @@  RDEPENDS:${PN} = " \
 export PROJ_INCDIR = "${STAGING_INCDIR}"
 export PROJ_LIBDIR = "${STAGING_LIBDIR}"
 export PROJ_DIR = "${STAGING_BINDIR_NATIVE}/.."
-
-do_compile:append() {
-    for f in `find ${B} -name *.c`
-    do
-        sed -i -e "/BEGIN: Cython Metadata/,/END: Cython Metadata/d" $f
-    done
-    python_pep517_do_compile
-}