File reproducible.patch of Package python-pip
Index: pip-18.1/src/pip/_vendor/distlib/wheel.py
===================================================================
--- pip-18.1.orig/src/pip/_vendor/distlib/wheel.py
+++ pip-18.1/src/pip/_vendor/distlib/wheel.py
@@ -545,6 +545,9 @@ class Wheel(object):
if not is_script:
with zf.open(arcname) as bf:
fileop.copy_stream(bf, outfile)
+ t = zf.getinfo(arcname).date_time
+ epoch = datetime.datetime(*t).timestamp()
+ os.utime(outfile, (epoch, epoch))
outfiles.append(outfile)
# Double check the digest of the written file
if not dry_run and row[1]: