mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Exclude unneeded ddls from the pythonwin package int he windows 32bit binary build
This commit is contained in:
parent
5cb78b1003
commit
3177772cc6
@ -210,10 +210,12 @@ class Win32Freeze(Command, WixMixIn):
|
|||||||
shutil.copy2(os.path.join(QT_DIR, 'bin', x), self.dll_dir)
|
shutil.copy2(os.path.join(QT_DIR, 'bin', x), self.dll_dir)
|
||||||
shutil.copy2(r'C:\windows\system32\python%s.dll'%self.py_ver,
|
shutil.copy2(r'C:\windows\system32\python%s.dll'%self.py_ver,
|
||||||
self.dll_dir)
|
self.dll_dir)
|
||||||
for x in os.walk(r'C:\Python%s\Lib'%self.py_ver):
|
for dirpath, dirnames, filenames in os.walk(r'C:\Python%s\Lib'%self.py_ver):
|
||||||
for f in x[-1]:
|
if os.path.basename(dirpath) == 'pythonwin':
|
||||||
|
continue
|
||||||
|
for f in filenames:
|
||||||
if f.lower().endswith('.dll'):
|
if f.lower().endswith('.dll'):
|
||||||
f = self.j(x[0], f)
|
f = self.j(dirpath, f)
|
||||||
shutil.copy2(f, self.dll_dir)
|
shutil.copy2(f, self.dll_dir)
|
||||||
shutil.copy2(
|
shutil.copy2(
|
||||||
r'C:\Python%(v)s\Lib\site-packages\pywin32_system32\pywintypes%(v)s.dll'
|
r'C:\Python%(v)s\Lib\site-packages\pywin32_system32\pywintypes%(v)s.dll'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user