diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2025-09-26 16:19:09 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-10-03 11:21:04 -0700 |
commit | 04a39ec9db2e4939f466a290868f6ab889f1cdf4 (patch) | |
tree | 719763db8a142463645474e83d98ceae31be9e3e | |
parent | 512f1493f40bac0ec45b2030fc53700a96a164de (diff) | |
download | meta-openembedded-04a39ec9db2e4939f466a290868f6ab889f1cdf4.tar.gz |
python3-frozenlist: support reproducibility
In order to make the generated library be reproducible, build wheel
in source dir other than tmp dir (/tmp/xxxxxx), then yocto toolchain's
option -fdebug-prefix-map could work as expected
Note: To support reproducibility, it also requires oe-core commit [1] to be merged
[1] https://git.openembedded.org/openembedded-core/commit/?id=61d98d12eca1c7bdf3b7387a820c83d3b8fad965
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-python/recipes-devtools/python/python3-frozenlist/0001-build-wheel-in-place.patch | 31 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb | 3 |
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-frozenlist/0001-build-wheel-in-place.patch b/meta-python/recipes-devtools/python/python3-frozenlist/0001-build-wheel-in-place.patch new file mode 100644 index 0000000000..84f81da775 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-frozenlist/0001-build-wheel-in-place.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 606843ad079d9d0dac1172533d42b5a2327b99ed Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Wed, 17 Sep 2025 15:41:09 +0800 | ||
4 | Subject: [PATCH] build wheel in place | ||
5 | |||
6 | In order to make the generated library be reproducible, build wheel | ||
7 | in source dir other than tmp dir (/tmp/xxxxxx), then yocto toolchain's | ||
8 | option -fdebug-prefix-map could work as expected | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
12 | --- | ||
13 | packaging/pep517_backend/_backend.py | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/packaging/pep517_backend/_backend.py b/packaging/pep517_backend/_backend.py | ||
17 | index 61cad34..d5d839e 100644 | ||
18 | --- a/packaging/pep517_backend/_backend.py | ||
19 | +++ b/packaging/pep517_backend/_backend.py | ||
20 | @@ -316,7 +316,7 @@ def build_wheel( | ||
21 | """ | ||
22 | with maybe_prebuild_c_extensions( | ||
23 | line_trace_cython_when_unset=False, | ||
24 | - build_inplace=False, | ||
25 | + build_inplace=True, | ||
26 | config_settings=config_settings, | ||
27 | ): | ||
28 | return _setuptools_build_wheel( | ||
29 | -- | ||
30 | 2.34.1 | ||
31 | |||
diff --git a/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb b/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb index 7d813a026c..d832494c82 100644 --- a/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb +++ b/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb | |||
@@ -7,6 +7,9 @@ SRC_URI[sha256sum] = "2e310d81923c2437ea8670467121cc3e9b0f76d3043cc1d2331d56c7fb | |||
7 | 7 | ||
8 | inherit pypi python_setuptools_build_meta cython | 8 | inherit pypi python_setuptools_build_meta cython |
9 | 9 | ||
10 | SRC_URI += " \ | ||
11 | file://0001-build-wheel-in-place.patch \ | ||
12 | " | ||
10 | DEPENDS += " \ | 13 | DEPENDS += " \ |
11 | python3-expandvars-native \ | 14 | python3-expandvars-native \ |
12 | " | 15 | " |