Commit 1db61ca3 authored by Guido van Rossum's avatar Guido van Rossum

Add special handling for Python modules that are imported implicitly

by the Python runtime: 'site' and 'exceptions'.
parent a1c3a3a8
......@@ -85,6 +85,9 @@ def main():
odir = ''
win = sys.platform[:3] == 'win'
# modules that are imported by the Python runtime
implicits = ["site", "exceptions"]
# output files
frozen_c = 'frozen.c'
config_c = 'config.c'
......@@ -217,6 +220,9 @@ def main():
target = os.path.join(odir, target)
makefile = os.path.join(odir, makefile)
for mod in implicits:
modules.append(findmodules.findmodule(mod))
# Actual work starts here...
dict = findmodules.findmodules(scriptfile, modules, path)
......
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