Dont remove lib2to3 as it is used by some thirdparty deps

This commit is contained in:
Kovid Goyal 2020-09-30 22:49:41 +05:30
parent bbb050b77c
commit b5af89b594
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -135,7 +135,7 @@ def copy_python(env, ext_dir):
y = j(srcdir, x)
ext = os.path.splitext(x)[1]
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)
if os.path.isfile(y) and ext in ('.py', '.so'):
shutil.copy2(y, env.py_dir)