From 89018366738f1bda69195f2900a28a0603ec6875 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 9 Sep 2019 20:50:29 +0530 Subject: [PATCH] Bundle distutils in the binaries as Pillow now requires it --- bypy/linux/__main__.py | 2 +- bypy/windows/__main__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bypy/linux/__main__.py b/bypy/linux/__main__.py index f2794f9713..ca4514491a 100644 --- a/bypy/linux/__main__.py +++ b/bypy/linux/__main__.py @@ -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'): diff --git a/bypy/windows/__main__.py b/bypy/windows/__main__.py index 6f1d66b68e..16ab46e070 100644 --- a/bypy/windows/__main__.py +++ b/bypy/windows/__main__.py @@ -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)