Kaydet (Commit) e9e20a98 authored tarafından Just van Rossum's avatar Just van Rossum

[ 684677 ] Allow freeze to exclude implicits

üst c49435c9
...@@ -130,9 +130,6 @@ def main(): ...@@ -130,9 +130,6 @@ def main():
fail_import = exclude[:] fail_import = exclude[:]
# modules that are imported by the Python runtime
implicits = ["site", "exceptions"]
# output files # output files
frozen_c = 'frozen.c' frozen_c = 'frozen.c'
config_c = 'config.c' config_c = 'config.c'
...@@ -202,6 +199,12 @@ def main(): ...@@ -202,6 +199,12 @@ def main():
f,r = a.split("=", 2) f,r = a.split("=", 2)
replace_paths.append( (f,r) ) replace_paths.append( (f,r) )
# modules that are imported by the Python runtime
implicits = []
for module in ('site', 'exceptions',):
if module not in exclude:
implicits.append(module)
# default prefix and exec_prefix # default prefix and exec_prefix
if not exec_prefix: if not exec_prefix:
if prefix: if prefix:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment