bpo-34691: Compile _contextvars module into main Python library (GH-1… · python/cpython@4c70d9f (original) (raw)

6 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1 +The _contextvars module is now built into the core Python library on
2 +Windows.
Original file line number Diff line number Diff line change
@@ -72,6 +72,8 @@ extern PyObject* PyInit__string(void);
72 72 extern PyObject* PyInit__stat(void);
73 73 extern PyObject* PyInit__opcode(void);
74 74
75 +extern PyObject* PyInit__contextvars(void);
76 +
75 77 /* tools/freeze/makeconfig.py marker for additional "extern" */
76 78 /* -- ADDMODULE MARKER 1 -- */
77 79
@@ -164,6 +166,8 @@ struct _inittab _PyImport_Inittab[] = {
164 166 {"_stat", PyInit__stat},
165 167 {"_opcode", PyInit__opcode},
166 168
169 + {"_contextvars", PyInit__contextvars},
170 +
167 171 /* Sentinel */
168 172 {0, 0}
169 173 };
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@
50 50
51 51 <Projects Include="pyshellext.vcxproj" />
52 52
53 - <ExtensionModules Include="_asyncio;_contextvars;_ctypes;_decimal;_elementtree;_msi;_multiprocessing;_overlapped;pyexpat;_queue;select;unicodedata;winsound" />
53 + <ExtensionModules Include="_asyncio;_ctypes;_decimal;_elementtree;_msi;_multiprocessing;_overlapped;pyexpat;_queue;select;unicodedata;winsound" />
54 54
55 55 <ExternalModules Include="_bz2;_lzma;_sqlite3" />
56 56
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
1 1
2 2 <Wix xmlns="" title="undefined" rel="noopener noreferrer">http://schemas.microsoft.com/wix/2006/wi"\>
3 -
3 +
4 4 <Fragment>
5 5 <DirectoryRef Id="Lib_venv_scripts_nt" />
6 6