Bundle distutils in the binaries as Pillow now requires it

This commit is contained in:
Kovid Goyal 2019-09-09 20:50:29 +05:30
parent 25bc0dc6c5
commit 8901836673
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ def copy_python(env, ext_dir):
for x in os.listdir(srcdir):
y = j(srcdir, x)
ext = os.path.splitext(x)[1]
if os.path.isdir(y) and x not in ('test', 'hotshot', 'distutils',
if os.path.isdir(y) and x not in ('test', 'hotshot',
'site-packages', 'idlelib', 'lib2to3', 'dist-packages'):
shutil.copytree(y, j(env.py_dir, x), ignore=ignore_in_lib)
if os.path.isfile(y) and ext in ('.py', '.so'):

View File

@ -237,7 +237,7 @@ def freeze(env, ext_dir):
extract_pyd_modules(env, sp_dir)
printf('Byte-compiling all python modules...')
for x in ('test', 'lib2to3', 'distutils'):
for x in ('test', 'lib2to3'):
x = j(env.lib_dir, x)
if os.path.exists(x):
shutil.rmtree(x)