From fff923d56511d0d4356a7d25f57466b46f028fdc Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Mon, 23 Oct 2023 16:46:47 +0800 Subject: python3-h5py: upgrade 3.9.0 -> 3.10.0 Changelog: https://docs.h5py.org/en/stable/whatsnew/3.10.html#bug-fixes Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj (cherry picked from commit 867fb4c7d0bdf0b895b9cbe0d9a100f7b8e3a9f9) Signed-off-by: Armin Kuster --- .../recipes-devtools/python/python3-h5py_3.10.0.bb | 39 ++++++++++++++++++++++ .../recipes-devtools/python/python3-h5py_3.9.0.bb | 39 ---------------------- 2 files changed, 39 insertions(+), 39 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-h5py_3.10.0.bb delete mode 100644 meta-python/recipes-devtools/python/python3-h5py_3.9.0.bb diff --git a/meta-python/recipes-devtools/python/python3-h5py_3.10.0.bb b/meta-python/recipes-devtools/python/python3-h5py_3.10.0.bb new file mode 100644 index 0000000000..400233e64a --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-h5py_3.10.0.bb @@ -0,0 +1,39 @@ +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] = "d93adc48ceeb33347eb24a634fb787efc7ae4644e6ea4ba733d099605045c049" + +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" diff --git a/meta-python/recipes-devtools/python/python3-h5py_3.9.0.bb b/meta-python/recipes-devtools/python/python3-h5py_3.9.0.bb deleted file mode 100644 index 834bb031ca..0000000000 --- a/meta-python/recipes-devtools/python/python3-h5py_3.9.0.bb +++ /dev/null @@ -1,39 +0,0 @@ -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] = "e604db6521c1e367c6bd7fad239c847f53cc46646f2d2651372d05ae5e95f817" - -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" -- cgit v1.2.3-54-g00ecf