mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-99582: freeze zipimport
into _bootstrap_python
(#99583)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
This commit is contained in:
parent
7c0fb71fbf
commit
228c92eb5c
3 changed files with 5 additions and 1 deletions
|
@ -976,7 +976,8 @@ Programs/_testembed: Programs/_testembed.o $(LINK_PYTHON_DEPS)
|
||||||
|
|
||||||
BOOTSTRAP_HEADERS = \
|
BOOTSTRAP_HEADERS = \
|
||||||
Python/frozen_modules/importlib._bootstrap.h \
|
Python/frozen_modules/importlib._bootstrap.h \
|
||||||
Python/frozen_modules/importlib._bootstrap_external.h
|
Python/frozen_modules/importlib._bootstrap_external.h \
|
||||||
|
Python/frozen_modules/zipimport.h
|
||||||
|
|
||||||
Programs/_bootstrap_python.o: Programs/_bootstrap_python.c $(BOOTSTRAP_HEADERS) $(PYTHON_HEADERS)
|
Programs/_bootstrap_python.o: Programs/_bootstrap_python.c $(BOOTSTRAP_HEADERS) $(PYTHON_HEADERS)
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Freeze :mod:`zipimport` module into ``_bootstrap_python``.
|
|
@ -12,6 +12,7 @@
|
||||||
/* Includes for frozen modules: */
|
/* Includes for frozen modules: */
|
||||||
#include "Python/frozen_modules/importlib._bootstrap.h"
|
#include "Python/frozen_modules/importlib._bootstrap.h"
|
||||||
#include "Python/frozen_modules/importlib._bootstrap_external.h"
|
#include "Python/frozen_modules/importlib._bootstrap_external.h"
|
||||||
|
#include "Python/frozen_modules/zipimport.h"
|
||||||
/* End includes */
|
/* End includes */
|
||||||
|
|
||||||
uint32_t _Py_next_func_version = 1;
|
uint32_t _Py_next_func_version = 1;
|
||||||
|
@ -32,6 +33,7 @@ _Py_Deepfreeze_Fini(void)
|
||||||
static const struct _frozen bootstrap_modules[] = {
|
static const struct _frozen bootstrap_modules[] = {
|
||||||
{"_frozen_importlib", _Py_M__importlib__bootstrap, (int)sizeof(_Py_M__importlib__bootstrap)},
|
{"_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)},
|
{"_frozen_importlib_external", _Py_M__importlib__bootstrap_external, (int)sizeof(_Py_M__importlib__bootstrap_external)},
|
||||||
|
{"zipimport", _Py_M__zipimport, (int)sizeof(_Py_M__zipimport)},
|
||||||
{0, 0, 0} /* bootstrap sentinel */
|
{0, 0, 0} /* bootstrap sentinel */
|
||||||
};
|
};
|
||||||
static const struct _frozen stdlib_modules[] = {
|
static const struct _frozen stdlib_modules[] = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue