mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
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:
parent
152f5f37ce
commit
25169cfc20
@ -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
|
# There's a couple of rather big exe files in the distutils folder that we absolutely don't
|
||||||
# need. Remove them.
|
# need. Remove them.
|
||||||
delete_files_with_pattern(op.join(dest_folder, 'distutils'), '*.exe')
|
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):
|
def fix_qt_resource_file(path):
|
||||||
# pyrcc4 under Windows, if the locale is non-english, can produce a source file with a date
|
# pyrcc4 under Windows, if the locale is non-english, can produce a source file with a date
|
||||||
|
Loading…
x
Reference in New Issue
Block a user