mirror of
https://github.com/python/cpython.git
synced 2025-07-10 04:45:36 +00:00
Issue #14928: Fix importlib bootstrap issues by using a custom executable (Modules/_freeze_importlib) to build Python/importlib.h.
This commit is contained in:
parent
0006aacb9d
commit
e67f48ce5e
8 changed files with 806 additions and 697 deletions
|
@ -242,7 +242,7 @@ import_init(PyInterpreterState *interp, PyObject *sysmod)
|
|||
|
||||
|
||||
void
|
||||
Py_InitializeEx(int install_sigs)
|
||||
_Py_InitializeEx_Private(int install_sigs, int install_importlib)
|
||||
{
|
||||
PyInterpreterState *interp;
|
||||
PyThreadState *tstate;
|
||||
|
@ -363,6 +363,9 @@ Py_InitializeEx(int install_sigs)
|
|||
/* Initialize _warnings. */
|
||||
_PyWarnings_Init();
|
||||
|
||||
if (!install_importlib)
|
||||
return;
|
||||
|
||||
import_init(interp, sysmod);
|
||||
|
||||
_PyTime_Init();
|
||||
|
@ -392,6 +395,12 @@ Py_InitializeEx(int install_sigs)
|
|||
initsite(); /* Module site */
|
||||
}
|
||||
|
||||
void
|
||||
Py_InitializeEx(int install_sigs)
|
||||
{
|
||||
_Py_InitializeEx_Private(install_sigs, 1);
|
||||
}
|
||||
|
||||
void
|
||||
Py_Initialize(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue