mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 07:57:27 +00:00
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>
This commit is contained in:
@@ -8,12 +8,11 @@ SRC_URI[sha256sum] = "326d70b53d31baa61f00b8aa5f95c2fcb9621a3ee8365d770c551a13db
|
|||||||
|
|
||||||
SRC_URI += "file://0001-setup_build.py-avoid-absolute-path.patch"
|
SRC_URI += "file://0001-setup_build.py-avoid-absolute-path.patch"
|
||||||
|
|
||||||
inherit pkgconfig pypi setuptools3
|
inherit pkgconfig pypi setuptools3 cython
|
||||||
|
|
||||||
BBCLASSEXTEND = "native"
|
BBCLASSEXTEND = "native"
|
||||||
|
|
||||||
DEPENDS = "python3-pkgconfig-native \
|
DEPENDS = "python3-pkgconfig-native \
|
||||||
python3-cython-native \
|
|
||||||
python3-numpy-native \
|
python3-numpy-native \
|
||||||
python3-six-native \
|
python3-six-native \
|
||||||
hdf5-native \
|
hdf5-native \
|
||||||
@@ -21,16 +20,6 @@ DEPENDS = "python3-pkgconfig-native \
|
|||||||
hdf5 \
|
hdf5 \
|
||||||
"
|
"
|
||||||
|
|
||||||
PACKAGESPLITFUNCS =+ "fix_cythonized_sources"
|
|
||||||
|
|
||||||
fix_cythonized_sources() {
|
|
||||||
for f in `grep -l -r -e '\/* Generated by Cython.*/$' ${PKGD}${TARGET_DBGSRC_DIR}`; do
|
|
||||||
if [ -e $f ]; then
|
|
||||||
sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' $f
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
RDEPENDS:${PN} = "python3-numpy \
|
RDEPENDS:${PN} = "python3-numpy \
|
||||||
python3-six \
|
python3-six \
|
||||||
python3-json \
|
python3-json \
|
||||||
|
|||||||
Reference in New Issue
Block a user