Skip to content

Commit

Permalink
bpo-34691: Compile _contextvars module into main Python library (pyth…
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba committed Feb 2, 2019
1 parent b82bfac commit 4c70d9f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 95 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The _contextvars module is now built into the core Python library on
Windows.
4 changes: 4 additions & 0 deletions PC/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ extern PyObject* PyInit__string(void);
extern PyObject* PyInit__stat(void);
extern PyObject* PyInit__opcode(void);

extern PyObject* PyInit__contextvars(void);

/* tools/freeze/makeconfig.py marker for additional "extern" */
/* -- ADDMODULE MARKER 1 -- */

Expand Down Expand Up @@ -164,6 +166,8 @@ struct _inittab _PyImport_Inittab[] = {
{"_stat", PyInit__stat},
{"_opcode", PyInit__opcode},

{"_contextvars", PyInit__contextvars},

/* Sentinel */
{0, 0}
};
77 changes: 0 additions & 77 deletions PCbuild/_contextvars.vcxproj

This file was deleted.

16 changes: 0 additions & 16 deletions PCbuild/_contextvars.vcxproj.filters

This file was deleted.

2 changes: 1 addition & 1 deletion PCbuild/pcbuild.proj
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<!-- pyshellext.dll -->
<Projects Include="pyshellext.vcxproj" />
<!-- Extension modules -->
<ExtensionModules Include="_asyncio;_contextvars;_ctypes;_decimal;_elementtree;_msi;_multiprocessing;_overlapped;pyexpat;_queue;select;unicodedata;winsound" />
<ExtensionModules Include="_asyncio;_ctypes;_decimal;_elementtree;_msi;_multiprocessing;_overlapped;pyexpat;_queue;select;unicodedata;winsound" />
<!-- Extension modules that require external sources -->
<ExternalModules Include="_bz2;_lzma;_sqlite3" />
<!-- venv launchers -->
Expand Down
2 changes: 1 addition & 1 deletion Tools/msi/lib/lib_files.wxs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?define exts=pyexpat;select;unicodedata;winsound;_bz2;_elementtree;_socket;_ssl;_msi;_ctypes;_hashlib;_multiprocessing;_lzma;_decimal;_overlapped;_sqlite3;_asyncio;_queue;_contextvars ?>
<?define exts=pyexpat;select;unicodedata;winsound;_bz2;_elementtree;_socket;_ssl;_msi;_ctypes;_hashlib;_multiprocessing;_lzma;_decimal;_overlapped;_sqlite3;_asyncio;_queue ?>
<Fragment>
<DirectoryRef Id="Lib_venv_scripts_nt" />

Expand Down

0 comments on commit 4c70d9f

Please sign in to comment.