mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Tell _frozen_importlib to consider bytecode first (#248)
This commit is contained in:
parent
ebb8c85496
commit
98ccbf44b1
7 changed files with 2896 additions and 2887 deletions
2
third_party/python/Python/importlib.inc
vendored
2
third_party/python/Python/importlib.inc
vendored
|
@ -8,7 +8,7 @@
|
|||
|
||||
/*
|
||||
* Auto-generated by
|
||||
* m/third_party/python/freeze.com \
|
||||
* o/third_party/python/freeze.com \
|
||||
* third_party/python/Lib/importlib/_bootstrap.py \
|
||||
* third_party/python/Python/importlib.inc
|
||||
*/
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
/*
|
||||
* Auto-generated by
|
||||
* m/third_party/python/freeze.com \
|
||||
* o/third_party/python/freeze.com \
|
||||
* third_party/python/Lib/importlib/_bootstrap_external.py \
|
||||
* third_party/python/Python/importlib_external.inc
|
||||
*/
|
||||
|
@ -2289,7 +2289,7 @@ const unsigned char _Py_M__importlib_external[] = {
|
|||
0,0,0,0,0,0,0,3,0,0,0,3,0,0,0,67,
|
||||
0,0,0,115,38,0,0,0,116,0,116,1,106,2,131,0,
|
||||
102,2,125,0,116,3,116,4,102,2,125,1,116,5,116,6,
|
||||
102,2,125,2,124,0,124,1,124,2,103,3,83,0,41,1,
|
||||
102,2,125,2,124,0,124,2,124,1,103,3,83,0,41,1,
|
||||
122,95,82,101,116,117,114,110,115,32,97,32,108,105,115,116,
|
||||
32,111,102,32,102,105,108,101,45,98,97,115,101,100,32,109,
|
||||
111,100,117,108,101,32,108,111,97,100,101,114,115,46,10,10,
|
||||
|
|
11
third_party/python/Python/pylifecycle.c
vendored
11
third_party/python/Python/pylifecycle.c
vendored
|
@ -307,6 +307,17 @@ import_init(PyInterpreterState *interp, PyObject *sysmod)
|
|||
|
||||
/* just add zip!.python/ to sys.path */
|
||||
/* _PyImportZip_Init(); */
|
||||
PyImport_ImportModule("_codecs");
|
||||
PyImport_ImportModule("_collections");
|
||||
PyImport_ImportModule("_functools");
|
||||
PyImport_ImportModule("_heapq");
|
||||
PyImport_ImportModule("_locale");
|
||||
PyImport_ImportModule("_operator");
|
||||
PyImport_ImportModule("_signal");
|
||||
PyImport_ImportModule("_sre");
|
||||
PyImport_ImportModule("_stat");
|
||||
PyImport_ImportModule("errno");
|
||||
PyImport_ImportModule("itertools");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue