mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Bundle distutils in the binaries as Pillow now requires it
This commit is contained in:
parent
25bc0dc6c5
commit
8901836673
@ -132,7 +132,7 @@ def copy_python(env, ext_dir):
|
|||||||
for x in os.listdir(srcdir):
|
for x in os.listdir(srcdir):
|
||||||
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', 'distutils',
|
if os.path.isdir(y) and x not in ('test', 'hotshot',
|
||||||
'site-packages', 'idlelib', 'lib2to3', 'dist-packages'):
|
'site-packages', 'idlelib', 'lib2to3', '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'):
|
||||||
|
@ -237,7 +237,7 @@ def freeze(env, ext_dir):
|
|||||||
extract_pyd_modules(env, sp_dir)
|
extract_pyd_modules(env, sp_dir)
|
||||||
|
|
||||||
printf('Byte-compiling all python modules...')
|
printf('Byte-compiling all python modules...')
|
||||||
for x in ('test', 'lib2to3', 'distutils'):
|
for x in ('test', 'lib2to3'):
|
||||||
x = j(env.lib_dir, x)
|
x = j(env.lib_dir, x)
|
||||||
if os.path.exists(x):
|
if os.path.exists(x):
|
||||||
shutil.rmtree(x)
|
shutil.rmtree(x)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user