mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Dont remove v3 port from PyQt
This commit is contained in:
parent
baf0685ceb
commit
55214540fd
@ -541,7 +541,6 @@ class Freeze(object):
|
||||
for x in os.listdir(join(sp, 'PyQt5')):
|
||||
if x.endswith('.so') and x.rpartition('.')[0] not in PYQT_MODULES and x != 'sip.so':
|
||||
os.remove(join(sp, 'PyQt5', x))
|
||||
os.remove(join(sp, 'PyQt5', 'uic/port_v3/proxy_base.py'))
|
||||
self.remove_bytecode(sp)
|
||||
|
||||
@flush
|
||||
|
@ -201,9 +201,6 @@ def freeze(env, ext_dir):
|
||||
shutil.copytree(j(comext, 'shell'), j(sp_dir, 'win32com', 'shell'))
|
||||
shutil.rmtree(comext)
|
||||
|
||||
for pat in ('PyQt5\\uic\\port_v3', ):
|
||||
x = glob.glob(j(env.lib_dir, 'site-packages', pat))[0]
|
||||
shutil.rmtree(x)
|
||||
pyqt = j(env.lib_dir, 'site-packages', 'PyQt5')
|
||||
for x in {x for x in os.listdir(pyqt) if x.endswith('.pyd')}:
|
||||
if x.partition('.')[0] not in PYQT_MODULES and x != 'sip.pyd':
|
||||
|
Loading…
x
Reference in New Issue
Block a user