[ 684677 ] Allow freeze to exclude implicits

This commit is contained in:
Just van Rossum 2003-03-08 19:50:38 +00:00
parent c49435c991
commit e9e20a9838

View file

@ -130,9 +130,6 @@ def main():
fail_import = exclude[:]
# modules that are imported by the Python runtime
implicits = ["site", "exceptions"]
# output files
frozen_c = 'frozen.c'
config_c = 'config.c'
@ -202,6 +199,12 @@ def main():
f,r = a.split("=", 2)
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
if not exec_prefix:
if prefix: