meta-openembedded/meta-python/recipes-devtools/python/python3-h5py_3.8.0.bb
Khem Raj 56ac2a69a8 python3-h5py: Fix TMPDIR references in dbg files
These are embedded into comments in C source code generated with cython
during do_compile.

Fixes

WARNING: python3-h5py-3.8.0-r0 do_package_qa: QA Issue: File /usr/src/debug/python3-h5py/3.8.0-r0/h5py/_conv.c in package python3-h5py-src contains reference to TMPDIR
File /usr/src/debug/python3-h5py/3.8.0-r0/h5py/h5fd.c in package python3-h5py-src contains reference to TMPDIR [buildpaths]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-16 07:58:58 -07:00

40 lines
1.1 KiB
BlitzBasic

SUMMARY = "Provides both a high- and low-level interface to the HDF5 library from Python."
HOMEPAGE = "https://www.h5py.org/"
SECTION = "devel/python"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=113251d71fb0384712c719b567261c5c"
SRC_URI[sha256sum] = "6fead82f0c4000cf38d53f9c030780d81bfa0220218aee13b90b7701c937d95f"
SRC_URI += "file://0001-setup_build.py-avoid-absolute-path.patch"
inherit pkgconfig pypi setuptools3
BBCLASSEXTEND = "native"
DEPENDS = "python3-pkgconfig-native \
python3-cython-native \
python3-numpy-native \
python3-six-native \
hdf5-native \
python3 \
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 \
"
export HDF5_VERSION="1.14.0"