From 34821f5c4b3dfda5e4d99d34d804c1ebcce9f66d Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Mon, 30 Sep 2024 15:42:47 +0800 Subject: python3-h5py: upgrade 3.11.0 -> 3.12.1 0001-setup_build.py-avoid-absolute-path.patch refreshed for 3.12.1 Changelog: https://github.com/h5py/h5py/blob/master/docs/whatsnew/3.12.rst Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../0001-setup_build.py-avoid-absolute-path.patch | 7 ++-- .../recipes-devtools/python/python3-h5py_3.11.0.bb | 39 ---------------------- .../recipes-devtools/python/python3-h5py_3.12.1.bb | 39 ++++++++++++++++++++++ 3 files changed, 42 insertions(+), 43 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-h5py_3.11.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-h5py_3.12.1.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-h5py/0001-setup_build.py-avoid-absolute-path.patch b/meta-python/recipes-devtools/python/python3-h5py/0001-setup_build.py-avoid-absolute-path.patch index 0b8555734a..de2f09ec8e 100644 --- a/meta-python/recipes-devtools/python/python3-h5py/0001-setup_build.py-avoid-absolute-path.patch +++ b/meta-python/recipes-devtools/python/python3-h5py/0001-setup_build.py-avoid-absolute-path.patch @@ -1,4 +1,4 @@ -From 6f8cee826ef9309c174aa97cb6af2ba532ed9dba Mon Sep 17 00:00:00 2001 +From 59d1cc34739a18a32d3250973af2357c41d8d156 Mon Sep 17 00:00:00 2001 From: Mingli Yu Date: Thu, 28 Jan 2021 18:44:10 -0800 Subject: [PATCH] setup_build.py: avoid absolute path @@ -9,16 +9,15 @@ Upstream-Status: Submitted [https://github.com/h5py/h5py/pull/1803] Signed-off-by: Mingli Yu Signed-off-by: Leon Anavi - --- setup_build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup_build.py b/setup_build.py -index 78c6677..64db7f7 100644 +index a041fa6..4d44215 100644 --- a/setup_build.py +++ b/setup_build.py -@@ -21,7 +21,7 @@ from setup_configure import BuildConfig +@@ -20,7 +20,7 @@ from setup_configure import BuildConfig def localpath(*args): diff --git a/meta-python/recipes-devtools/python/python3-h5py_3.11.0.bb b/meta-python/recipes-devtools/python/python3-h5py_3.11.0.bb deleted file mode 100644 index 1cf5f5638e..0000000000 --- a/meta-python/recipes-devtools/python/python3-h5py_3.11.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] = "7b7e8f78072a2edec87c9836f25f34203fd492a4475709a18b417a33cfb21fa9" - -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}${TARGET_DBGSRC_DIR}`; 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.12.1.bb b/meta-python/recipes-devtools/python/python3-h5py_3.12.1.bb new file mode 100644 index 0000000000..a84dd28822 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-h5py_3.12.1.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] = "326d70b53d31baa61f00b8aa5f95c2fcb9621a3ee8365d770c551a13dbbcbfdf" + +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}${TARGET_DBGSRC_DIR}`; 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