diff options
author | Steve Dower <steve.dower@python.org> | 2021-09-15 17:11:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-15 17:11:12 (GMT) |
commit | 09b4ad11f323f8702cde795e345b75e0fbb1a9a5 (patch) | |
tree | fe54816a9bcabfda7e410e5d23646c0bc8e6d9a0 /PC | |
parent | d897579a80da3f4572d96501c41bec6cacb10d84 (diff) | |
download | cpython-09b4ad11f323f8702cde795e345b75e0fbb1a9a5.zip cpython-09b4ad11f323f8702cde795e345b75e0fbb1a9a5.tar.gz cpython-09b4ad11f323f8702cde795e345b75e0fbb1a9a5.tar.bz2 |
bpo-45188: Windows now regenerates frozen modules at the start of build instead of late (GH-28322)
This will enable us to drop the frozen module header files from the repository.
It does currently cause many source files to be built twice, which just takes more time. For whoever comes to fix this in the future, the files shared between freeze_module and pythoncore should be put into a static library that is consumed by both.
Diffstat (limited to 'PC')
-rw-r--r-- | PC/config_minimal.c | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/PC/config_minimal.c b/PC/config_minimal.c new file mode 100644 index 0000000..adb1c44 --- /dev/null +++ b/PC/config_minimal.c @@ -0,0 +1,53 @@ +/* Module configuration */ + +/* This file contains the table of built-in modules. + See create_builtin() in import.c. */ + +#include "Python.h" + +extern PyObject* PyInit_faulthandler(void); +extern PyObject* PyInit__tracemalloc(void); +extern PyObject* PyInit_gc(void); +extern PyObject* PyInit_nt(void); +extern PyObject* PyInit__signal(void); +extern PyObject* PyInit_winreg(void); + +extern PyObject* PyInit__ast(void); +extern PyObject* PyInit__io(void); +extern PyObject* PyInit_atexit(void); +extern PyObject* _PyWarnings_Init(void); +extern PyObject* PyInit__string(void); +extern PyObject* PyInit__tokenize(void); + +extern PyObject* PyMarshal_Init(void); +extern PyObject* PyInit__imp(void); + +struct _inittab _PyImport_Inittab[] = { + {"_ast", PyInit__ast}, + {"faulthandler", PyInit_faulthandler}, + {"gc", PyInit_gc}, + {"nt", PyInit_nt}, /* Use the NT os functions, not posix */ + {"_signal", PyInit__signal}, + {"_tokenize", PyInit__tokenize}, + {"_tracemalloc", PyInit__tracemalloc}, + + {"winreg", PyInit_winreg}, + + /* This module "lives in" with marshal.c */ + {"marshal", PyMarshal_Init}, + + /* This lives it with import.c */ + {"_imp", PyInit__imp}, + + /* These entries are here for sys.builtin_module_names */ + {"builtins", NULL}, + {"sys", NULL}, + {"_warnings", _PyWarnings_Init}, + {"_string", PyInit__string}, + + {"_io", PyInit__io}, + {"atexit", PyInit_atexit}, + + /* Sentinel */ + {0, 0} +}; |