Ensure no duplicates in resources.zip

This commit is contained in:
Oleksii Shevchuk 2016-11-20 23:07:00 +02:00
parent 744a304eb5
commit 288aa030bf
1 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,7 @@ if 'win' in sys.platform:
zf.write(r'C:\Python27\Lib\site-packages\pywin32_system32\pywintypes27.dll', 'pywintypes27.dll')
try:
content = set()
for dep in all_dependencies:
mdep = __import__(dep)
print "DEPENDENCY: ", dep, mdep
@ -67,7 +68,11 @@ try:
]):
continue
if zipname in content:
continue
print('adding file : {}'.format(zipname))
content.add(zipname)
zf.write(os.path.join(root,f+ext), zipname)
else:
if '<memimport>' in mdep.__file__: