mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Add special handling for Python modules that are imported implicitly
by the Python runtime: 'site' and 'exceptions'.
This commit is contained in:
parent
c5d2d51700
commit
94ce0d1963
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue