mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Dont remove lib2to3 as it is used by some thirdparty deps
This commit is contained in:
parent
bbb050b77c
commit
b5af89b594
@ -135,7 +135,7 @@ def copy_python(env, ext_dir):
|
|||||||
y = j(srcdir, x)
|
y = j(srcdir, x)
|
||||||
ext = os.path.splitext(x)[1]
|
ext = os.path.splitext(x)[1]
|
||||||
if os.path.isdir(y) and x not in ('test', 'hotshot',
|
if os.path.isdir(y) and x not in ('test', 'hotshot',
|
||||||
'site-packages', 'idlelib', 'lib2to3', 'dist-packages'):
|
'site-packages', 'idlelib', 'dist-packages'):
|
||||||
shutil.copytree(y, j(env.py_dir, x), ignore=ignore_in_lib)
|
shutil.copytree(y, j(env.py_dir, x), ignore=ignore_in_lib)
|
||||||
if os.path.isfile(y) and ext in ('.py', '.so'):
|
if os.path.isfile(y) and ext in ('.py', '.so'):
|
||||||
shutil.copy2(y, env.py_dir)
|
shutil.copy2(y, env.py_dir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user