SHA256
1
0
forked from pool/python-pip
python-pip/distutils-reproducible-compile.patch
Matej Cepl c6fe1446b4 Accepting request 993345 from home:mcepl:branches:devel:languages:python
- Add distutils-reproducible-compile.patch to make installed
  files ordered correctly and thus builds reproducible again
  (port of the fix for bpo#29708 and gh#python/cpython#8057).

OBS-URL: https://build.opensuse.org/request/show/993345
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=99
2022-08-05 15:13:09 +00:00

16 lines
555 B
Diff

---
src/pip/_vendor/distlib/wheel.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/src/pip/_vendor/distlib/wheel.py
+++ b/src/pip/_vendor/distlib/wheel.py
@@ -538,7 +538,7 @@ class Wheel(object):
maker.source_dir = workdir
maker.target_dir = None
try:
- for zinfo in zf.infolist():
+ for zinfo in sorted(zf.infolist()):
arcname = zinfo.filename
if isinstance(arcname, text_type):
u_arcname = arcname