8000 gh-99582: freeze `zipimport` into `_bootstrap_python` (#99583) · python/cpython@228c92e · GitHub
[go: up one dir, main page]

Skip to content

Commit 228c92e

Browse files
gh-99582: freeze zipimport into _bootstrap_python (#99583)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
1 parent 7c0fb71 commit 228c92e

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Makefile.pre.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,8 @@ Programs/_testembed: Programs/_testembed.o $(LINK_PYTHON_DEPS)
976976

977977
BOOTSTRAP_HEADERS = \
978978
Python/frozen_modules/importlib._bootstrap.h \
979-
Python/frozen_modules/importlib._bootstrap_external.h
979+
Python/frozen_modules/importlib._bootstrap_external.h \
980+
Python/frozen_modules/zipimport.h
980981

981982
Programs/_bootstrap_python.o: Programs/_bootstrap_python.c $(BOOTSTRAP_HEADERS) $(PYTHON_HEADERS)
982983

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Freeze :mod:`zipimport` module into ``_bootstrap_python``.

Programs/_bootstrap_python.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/* Includes for frozen modules: */
1313
#include "Python/frozen_modules/importlib._bootstrap.h"
1414
#include "Python/frozen_modules/importlib._bootstrap_external.h"
15+
#include "Python/frozen_modules/zipimport.h"
1516
/* End includes */
1617

1718
uint32_t _Py_next_func_version = 1;
@@ -32,6 +33,7 @@ _Py_Deepfreeze_Fini(void)
3233
static const struct _frozen bootstrap_modules[] = {
3334
{"_frozen_importlib", _Py_M__importlib__bootstrap, (int)sizeof(_Py_M__importlib__bootstrap)},
3435
{"_frozen_importlib_external", _Py_M__importlib__bootstrap_external, (int)sizeof(_Py_M__importlib__bootstrap_external)},
36+
{"zipimport", _Py_M__zipimport, (int)sizeof(_Py_M__zipimport)},
3537
{0, 0, 0} /* bootstrap sentinel */
3638
};
3739
static const struct _frozen stdlib_modules[] = {

0 commit comments

Comments
 (0)
0