mirror of
https://github.com/python/cpython
synced 2024-11-02 15:20:44 +00:00
08285d563e
In the list of generated frozen modules at the top of Tools/scripts/freeze_modules.py, you will find that some of the modules have a different name than the module (or .py file) that is actually frozen. Let's call each case an "alias". Aliases do not come into play until we get to the (generated) list of modules in Python/frozen.c. (The tool for freezing modules, Programs/_freeze_module, is only concerned with the source file, not the module it will be used for.) Knowledge of which frozen modules are aliases (and the identity of the original module) normally isn't important. However, this information is valuable when we go to set __file__ on frozen stdlib modules. This change updates Tools/scripts/freeze_modules.py to map aliases to the original module name (or None if not a stdlib module) in Python/frozen.c. We also add a helper function in Python/import.c to look up a frozen module's alias and add the result of that function to the frozen info returned from find_frozen(). https://bugs.python.org/issue45020 |
||
---|---|---|
.. | ||
clinic | ||
frozen_modules | ||
_warnings.c | ||
adaptive.md | ||
asdl.c | ||
ast.c | ||
ast_opt.c | ||
ast_unparse.c | ||
bltinmodule.c | ||
bootstrap_hash.c | ||
ceval.c | ||
ceval_gil.h | ||
codecs.c | ||
compile.c | ||
condvar.h | ||
context.c | ||
dtoa.c | ||
dup2.c | ||
dynamic_annotations.c | ||
dynload_hpux.c | ||
dynload_shlib.c | ||
dynload_stub.c | ||
dynload_win.c | ||
errors.c | ||
fileutils.c | ||
formatter_unicode.c | ||
frame.c | ||
frozen.c | ||
frozenmain.c | ||
future.c | ||
getargs.c | ||
getcompiler.c | ||
getcopyright.c | ||
getopt.c | ||
getplatform.c | ||
getversion.c | ||
hamt.c | ||
hashtable.c | ||
import.c | ||
importdl.c | ||
importdl.h | ||
initconfig.c | ||
makeopcodetargets.py | ||
marshal.c | ||
modsupport.c | ||
mysnprintf.c | ||
mystrtoul.c | ||
opcode_targets.h | ||
pathconfig.c | ||
preconfig.c | ||
pyarena.c | ||
pyctype.c | ||
pyfpe.c | ||
pyhash.c | ||
pylifecycle.c | ||
pymath.c | ||
pystate.c | ||
pystrcmp.c | ||
pystrhex.c | ||
pystrtod.c | ||
Python-ast.c | ||
Python-tokenize.c | ||
pythonrun.c | ||
pytime.c | ||
README | ||
specialize.c | ||
stdlib_module_names.h | ||
structmember.c | ||
suggestions.c | ||
symtable.c | ||
sysmodule.c | ||
thread.c | ||
thread_nt.h | ||
thread_pthread.h | ||
traceback.c | ||
wordcode_helpers.h |
Miscellaneous source files for the main Python shared library