Browse Source

win build: fix reproducibility by excluding `*.dist-info/`

closes https://github.com/spesmilo/electrum/issues/7739 (but this is just a workaround...)

the proper fix should be done upstream:
https://github.com/pypa/distlib/issues/164
https://bugs.python.org/issue47123
patch-4
SomberNight 3 years ago
parent
commit
859bd15356
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 8
      contrib/build-wine/deterministic.spec

8
contrib/build-wine/deterministic.spec

@ -102,6 +102,14 @@ for x in a.datas.copy():
a.datas.remove(x)
print('----> Removed x =', x)
# not reproducible (see #7739):
print("Removing *.dist-info/ from datas:")
for x in a.datas.copy():
if ".dist-info\\" in x[0].lower():
a.datas.remove(x)
print('----> Removed x =', x)
# hotfix for #3171 (pre-Win10 binaries)
a.binaries = [x for x in a.binaries if not x[1].lower().startswith(r'c:\windows')]

Loading…
Cancel
Save