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
This commit is contained in:
Matej Cepl 2022-08-05 15:13:09 +00:00 committed by Git OBS Bridge
parent 19311e4f60
commit c6fe1446b4
3 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,15 @@
---
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

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Jun 23 20:08:32 UTC 2022 - Matej Cepl <mcepl@suse.com>
- 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).
-------------------------------------------------------------------
Sat Mar 19 17:14:58 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@ -50,6 +50,9 @@ URL: http://www.pip-installer.org
Source: https://github.com/pypa/pip/archive/%{version}.tar.gz#/pip-%{version}-gh.tar.gz
# PATCH-FIX-OPENSUSE pip-shipped-requests-cabundle.patch -- adapted patch from python-certifi package
Patch0: pip-shipped-requests-cabundle.patch
# PATCH-FIX-UPSTREAM distutils-reproducible-compile.patch gh#python/cpython#8057 mcepl@suse.com
# To get reproducible builds, byte_compile() of distutils.util now sorts filenames.
Patch1: distutils-reproducible-compile.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module setuptools >= 40.8.0}
BuildRequires: fdupes