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.
This commit is contained in:
Virgil Dupras 2013-12-22 12:13:39 -05:00
parent 152f5f37ce
commit 25169cfc20
1 changed files with 2 additions and 0 deletions

View File

@ -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