diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-09-18 19:22:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-18 19:22:29 (GMT) |
commit | 79d1c2e6c9d1bc1cf41ec3041801ca1a2b9a995b (patch) | |
tree | 024dfc74ad7bd5290180638b1290301ef928426f /Python/frozen.c | |
parent | 4ba3b50bfe6d50cd82d208023ea23e203ab50589 (diff) | |
download | cpython-79d1c2e6c9d1bc1cf41ec3041801ca1a2b9a995b.zip cpython-79d1c2e6c9d1bc1cf41ec3041801ca1a2b9a995b.tar.gz cpython-79d1c2e6c9d1bc1cf41ec3041801ca1a2b9a995b.tar.bz2 |
bpo-25711: Rewrite zipimport in pure Python. (GH-6809)
Diffstat (limited to 'Python/frozen.c')
-rw-r--r-- | Python/frozen.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Python/frozen.c b/Python/frozen.c index 7e04f3c..f1901d2 100644 --- a/Python/frozen.c +++ b/Python/frozen.c @@ -4,6 +4,7 @@ #include "Python.h" #include "importlib.h" #include "importlib_external.h" +#include "importlib_zipimport.h" /* In order to test the support for frozen modules, by default we define a single frozen module, __hello__. Loading it will print @@ -29,9 +30,12 @@ static unsigned char M___hello__[] = { static const struct _frozen _PyImport_FrozenModules[] = { /* importlib */ - {"_frozen_importlib", _Py_M__importlib, (int)sizeof(_Py_M__importlib)}, - {"_frozen_importlib_external", _Py_M__importlib_external, - (int)sizeof(_Py_M__importlib_external)}, + {"_frozen_importlib", _Py_M__importlib_bootstrap, + (int)sizeof(_Py_M__importlib_bootstrap)}, + {"_frozen_importlib_external", _Py_M__importlib_bootstrap_external, + (int)sizeof(_Py_M__importlib_bootstrap_external)}, + {"zipimport", _Py_M__zipimport, + (int)sizeof(_Py_M__zipimport)}, /* Test module */ {"__hello__", M___hello__, SIZE}, /* Test package (negative size indicates package-ness) */ |