python3-h5py: improve reproducibility
PATCH 1/1 python3-h5py: improve reproducibility
From: Mingli Yu <[email protected]>
Prevent absolute path from ending up in the egg-info SOURCES.txt.
Signed-off-by Mingli Yu <[email protected]>
--- ...1-setup_build.py-avoid-absolute-path.patch | 30 +++++++++++++++++++ .../python/python3-h5py_2.10.0.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-h5py/0001-setup_build.py-avoid-absolute-path.patch
meta-python/recipes-devtools/python/python3-h5py/0001-setup_build.py-avoid-absolute-path.patch new file +30 -0
@@ -0,0 +1,30 @@ +From b5d5a7efc7aaa2be830731001ed17c5b71bcefb1 Mon Sep 17 00:00:00 2001 +From: Mingli Yu <[email protected]> +Date: Fri, 29 Jan 2021 02:33:06 +0000 +Subject: [PATCH] setup_build.py: avoid absolute path + +Prevent absolute path from ending up in the egg-info SOURCES.txt. + +Upstream-Status: Submitted [https://github.com/h5py/h5py/pull/1803] + +Signed-off-by: Mingli Yu <[email protected]> +--- + setup_build.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup_build.py b/setup_build.py +index ffd3bef..fb196c0 100644 +--- a/setup_build.py ++++ b/setup_build.py +@@ -20,7 +20,7 @@ import api_gen + + + def localpath(*args): +- return op.abspath(op.join(op.dirname(__file__), *args)) ++ return op.join(*args) + + + MODULES = ['defs','_errors','_objects','_proxy', 'h5fd', 'h5z', +-- +2.29.2 +
meta-python/recipes-devtools/python/python3-h5py_2.10.0.bb +1 -0
@@ -9,6 +9,7 @@ SRC_URI[sha256sum] = "84412798925dc870ffd7107f045d7659e60f5d46d1c70c700375248bf6 SRC_URI_append = " \ file://0001-cross-compiling-support.patch \ + file://0001-setup_build.py-avoid-absolute-path.patch \ " inherit pypi setuptools3
Signature · 1 line
2.17.1
Quoted 5 lines · Mingli
From: Mingli Yu <[email protected]>
Prevent absolute path from ending up in the egg-info SOURCES.txt.
Signed-off-by Mingli Yu <[email protected]>
Acked-by Trevor Gamblin <[email protected]>
Quoted 57 lines
--- ...1-setup_build.py-avoid-absolute-path.patch | 30 +++++++++++++++++++ .../python/python3-h5py_2.10.0.bb | 1 + 2 files changed, 31 insertions(+)create mode 100644
meta-python/recipes-devtools/python/python3-h5py/0001-setup_build.py-avoid-absolute-path.patchmeta-python/recipes-devtools/python/python3-h5py/0001-setup_build.py-avoid-absolute-path.patch new file +30
-0@@ -0,0 +1,30 @@ +From b5d5a7efc7aaa2be830731001ed17c5b71bcefb1 Mon Sep 17 00:00:00 2001 +From: Mingli Yu <[email protected]> +Date: Fri, 29 Jan 2021 02:33:06 +0000 +Subject: [PATCH] setup_build.py: avoid absolute path + +Prevent absolute path from ending up in the egg-info SOURCES.txt. + +Upstream-Status: Submitted [https://github.com/h5py/h5py/pull/1803] + +Signed-off-by: Mingli Yu <[email protected]> +--- + setup_build.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup_build.py b/setup_build.py +index ffd3bef..fb196c0 100644 +--- a/setup_build.py ++++ b/setup_build.py +@@ -20,7 +20,7 @@ import api_gen + + + def localpath(*args): +- return op.abspath(op.join(op.dirname(__file__), *args)) ++ return op.join(*args) + + + MODULES = ['defs','_errors','_objects','_proxy', 'h5fd', 'h5z', +-- +2.29.2 +meta-python/recipes-devtools/python/python3-h5py_2.10.0.bb +1
-0@@ -9,6 +9,7 @@ SRC_URI[sha256sum] = "84412798925dc870ffd7107f045d7659e60f5d46d1c70c700375248bf6 SRC_URI_append = " \ file://0001-cross-compiling-support.patch \ + file://0001-setup_build.py-avoid-absolute-path.patch \ " inherit pypi setuptools3