diff options
| author | Ross Burton <ross.burton@arm.com> | 2024-11-07 17:28:59 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-11-19 13:50:55 -0800 |
| commit | 3820b6ca31dbf75ff11864807c87202e5a4c544b (patch) | |
| tree | 021fc7120bb4cc417b0d035ceed0b26ea82f6ce4 /meta-python/recipes-devtools/python/python3-h5py_3.12.1.bb | |
| parent | a87950e468974eb7c1a88688e1c17fb072aed184 (diff) | |
| download | meta-openembedded-3820b6ca31dbf75ff11864807c87202e5a4c544b.tar.gz | |
python3-h5py: 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>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-h5py_3.12.1.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-h5py_3.12.1.bb | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/meta-python/recipes-devtools/python/python3-h5py_3.12.1.bb b/meta-python/recipes-devtools/python/python3-h5py_3.12.1.bb index a84dd28822..152d952263 100644 --- a/meta-python/recipes-devtools/python/python3-h5py_3.12.1.bb +++ b/meta-python/recipes-devtools/python/python3-h5py_3.12.1.bb | |||
| @@ -8,12 +8,11 @@ SRC_URI[sha256sum] = "326d70b53d31baa61f00b8aa5f95c2fcb9621a3ee8365d770c551a13db | |||
| 8 | 8 | ||
| 9 | SRC_URI += "file://0001-setup_build.py-avoid-absolute-path.patch" | 9 | SRC_URI += "file://0001-setup_build.py-avoid-absolute-path.patch" |
| 10 | 10 | ||
| 11 | inherit pkgconfig pypi setuptools3 | 11 | inherit pkgconfig pypi setuptools3 cython |
| 12 | 12 | ||
| 13 | BBCLASSEXTEND = "native" | 13 | BBCLASSEXTEND = "native" |
| 14 | 14 | ||
| 15 | DEPENDS = "python3-pkgconfig-native \ | 15 | DEPENDS = "python3-pkgconfig-native \ |
| 16 | python3-cython-native \ | ||
| 17 | python3-numpy-native \ | 16 | python3-numpy-native \ |
| 18 | python3-six-native \ | 17 | python3-six-native \ |
| 19 | hdf5-native \ | 18 | hdf5-native \ |
| @@ -21,16 +20,6 @@ DEPENDS = "python3-pkgconfig-native \ | |||
| 21 | hdf5 \ | 20 | hdf5 \ |
| 22 | " | 21 | " |
| 23 | 22 | ||
| 24 | PACKAGESPLITFUNCS =+ "fix_cythonized_sources" | ||
| 25 | |||
| 26 | fix_cythonized_sources() { | ||
| 27 | for f in `grep -l -r -e '\/* Generated by Cython.*/$' ${PKGD}${TARGET_DBGSRC_DIR}`; do | ||
| 28 | if [ -e $f ]; then | ||
| 29 | sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' $f | ||
| 30 | fi | ||
| 31 | done | ||
| 32 | } | ||
| 33 | |||
| 34 | RDEPENDS:${PN} = "python3-numpy \ | 23 | RDEPENDS:${PN} = "python3-numpy \ |
| 35 | python3-six \ | 24 | python3-six \ |
| 36 | python3-json \ | 25 | python3-json \ |
