From 25169cfc20dd58b8633c52ccfe8793311b5c0a4f Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sun, 22 Dec 2013 12:13:39 -0500 Subject: [PATCH] Create an empty site.py in collect_stdlib_dependencies() Since we have Python 3.3 as a minimum requirement, we don't need to patch our site.py with copy_sysconfig_files_for_embed() anymore, but we still need a site.py file on startup. We create it when we collect stdlib deps. --- hscommon/build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hscommon/build.py b/hscommon/build.py index 0ede9d0b..0b290dbc 100644 --- a/hscommon/build.py +++ b/hscommon/build.py @@ -448,6 +448,8 @@ def collect_stdlib_dependencies(script, dest_folder, extra_deps=None): # There's a couple of rather big exe files in the distutils folder that we absolutely don't # need. Remove them. delete_files_with_pattern(op.join(dest_folder, 'distutils'), '*.exe') + # And, finally, create an empty "site.py" that Python needs around on startup. + open(op.join(dest_folder, 'site.py'), 'w').close() def fix_qt_resource_file(path): # pyrcc4 under Windows, if the locale is non-english, can produce a source file with a date