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
This commit is contained in:
@@ -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')]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user