diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2021-09-17 22:31:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 22:31:31 (GMT) |
commit | 090591636c4f03ce06a039079bd7716a5b23631e (patch) | |
tree | 09de3850118af9103e697ad3f2eb514e0b4fb2a4 /Python | |
parent | 74cc2453ae690be940cddfae8caf8216d8628c4a (diff) | |
download | cpython-090591636c4f03ce06a039079bd7716a5b23631e.zip cpython-090591636c4f03ce06a039079bd7716a5b23631e.tar.gz cpython-090591636c4f03ce06a039079bd7716a5b23631e.tar.bz2 |
bpo-45020: Freeze os, site, and codecs. (gh-28398)
https://bugs.python.org/issue45020
Diffstat (limited to 'Python')
-rw-r--r-- | Python/frozen.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Python/frozen.c b/Python/frozen.c index cf384d3..05b5281 100644 --- a/Python/frozen.c +++ b/Python/frozen.c @@ -42,12 +42,15 @@ #include "frozen_modules/importlib__bootstrap_external.h" #include "frozen_modules/zipimport.h" #include "frozen_modules/abc.h" +#include "frozen_modules/codecs.h" #include "frozen_modules/io.h" #include "frozen_modules/_collections_abc.h" #include "frozen_modules/_sitebuiltins.h" #include "frozen_modules/genericpath.h" #include "frozen_modules/ntpath.h" #include "frozen_modules/posixpath.h" +#include "frozen_modules/os.h" +#include "frozen_modules/site.h" #include "frozen_modules/stat.h" #include "frozen_modules/__hello__.h" /* End includes */ @@ -62,15 +65,21 @@ static const struct _frozen _PyImport_FrozenModules[] = { (int)sizeof(_Py_M__importlib__bootstrap_external)}, {"zipimport", _Py_M__zipimport, (int)sizeof(_Py_M__zipimport)}, - /* stdlib */ + /* stdlib - startup, without site (python -S) */ {"abc", _Py_M__abc, (int)sizeof(_Py_M__abc)}, + {"codecs", _Py_M__codecs, (int)sizeof(_Py_M__codecs)}, {"io", _Py_M__io, (int)sizeof(_Py_M__io)}, + + /* stdlib - startup, with site */ {"_collections_abc", _Py_M___collections_abc, (int)sizeof(_Py_M___collections_abc)}, {"_sitebuiltins", _Py_M___sitebuiltins, (int)sizeof(_Py_M___sitebuiltins)}, {"genericpath", _Py_M__genericpath, (int)sizeof(_Py_M__genericpath)}, {"ntpath", _Py_M__ntpath, (int)sizeof(_Py_M__ntpath)}, {"posixpath", _Py_M__posixpath, (int)sizeof(_Py_M__posixpath)}, + {"os.path", _Py_M__posixpath, (int)sizeof(_Py_M__posixpath)}, + {"os", _Py_M__os, (int)sizeof(_Py_M__os)}, + {"site", _Py_M__site, (int)sizeof(_Py_M__site)}, {"stat", _Py_M__stat, (int)sizeof(_Py_M__stat)}, /* Test module */ |