diff options
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python/python3-h5py_3.8.0.bb')
| -rw-r--r-- | meta-openembedded/meta-python/recipes-devtools/python/python3-h5py_3.8.0.bb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-h5py_3.8.0.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-h5py_3.8.0.bb index 75a41e29dc..3436444695 100644 --- a/meta-openembedded/meta-python/recipes-devtools/python/python3-h5py_3.8.0.bb +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-h5py_3.8.0.bb @@ -21,6 +21,16 @@ DEPENDS = "python3-pkgconfig-native \ hdf5 \ " +PACKAGESPLITFUNCS =+ "fix_cythonized_sources" + +fix_cythonized_sources() { + for f in `grep -l -r -e '\/* Generated by Cython.*/$' ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}`; do + if [ -e $f ]; then + sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' $f + fi + done +} + RDEPENDS:${PN} = "python3-numpy \ python3-six \ python3-json \ |
