summaryrefslogtreecommitdiffstats
path: root/Tools/freeze
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2003-03-08 19:50:38 (GMT)
committerJust van Rossum <just@letterror.com>2003-03-08 19:50:38 (GMT)
commite9e20a98381bd7689f6813ac66e3400e1069757e (patch)
tree0d9f4aa88a70a0ebb7dcf242f26398917f5b9e57 /Tools/freeze
parentc49435c991e02d175858fd1e04f87b94dd1177b4 (diff)
downloadcpython-e9e20a98381bd7689f6813ac66e3400e1069757e.zip
cpython-e9e20a98381bd7689f6813ac66e3400e1069757e.tar.gz
cpython-e9e20a98381bd7689f6813ac66e3400e1069757e.tar.bz2
[ 684677 ] Allow freeze to exclude implicits
Diffstat (limited to 'Tools/freeze')
-rwxr-xr-xTools/freeze/freeze.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/Tools/freeze/freeze.py b/Tools/freeze/freeze.py
index 2c59807..8d1ffdf 100755
--- a/Tools/freeze/freeze.py
+++ b/Tools/freeze/freeze.py
@@ -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: