From 3f526a7809e70b393e455e4af53ff659bf452744 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Sat, 2 Feb 2019 13:21:35 -0800 Subject: [PATCH 1/2] bpo-34691: Remove external _contextvars module --- PC/config.c | 4 ++ PCbuild/_contextvars.vcxproj | 77 ---------------------------- PCbuild/_contextvars.vcxproj.filters | 16 ------ PCbuild/pcbuild.proj | 2 +- Tools/msi/lib/lib_files.wxs | 2 +- 5 files changed, 6 insertions(+), 95 deletions(-) delete mode 100644 PCbuild/_contextvars.vcxproj delete mode 100644 PCbuild/_contextvars.vcxproj.filters diff --git a/PC/config.c b/PC/config.c index 43347dddeba322c..6f34962bd72d4fc 100644 --- a/PC/config.c +++ b/PC/config.c @@ -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 -- */ @@ -164,6 +166,8 @@ struct _inittab _PyImport_Inittab[] = { {"_stat", PyInit__stat}, {"_opcode", PyInit__opcode}, + {"_contextvars", PyInit__contextvars}, + /* Sentinel */ {0, 0} }; diff --git a/PCbuild/_contextvars.vcxproj b/PCbuild/_contextvars.vcxproj deleted file mode 100644 index 7418e86570acb09..000000000000000 --- a/PCbuild/_contextvars.vcxproj +++ /dev/null @@ -1,77 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - PGInstrument - Win32 - - - PGInstrument - x64 - - - PGUpdate - Win32 - - - PGUpdate - x64 - - - Release - Win32 - - - Release - x64 - - - - {B8BF1D81-09DC-42D4-B406-4F868B33A89E} - _contextvars - Win32Proj - - - - - DynamicLibrary - NotSet - - - - .pyd - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - - - - - - - - - - {cf7ac3d1-e2df-41d2-bea6-1e2556cdea26} - false - - - - - - diff --git a/PCbuild/_contextvars.vcxproj.filters b/PCbuild/_contextvars.vcxproj.filters deleted file mode 100644 index b3002b7ff6772e5..000000000000000 --- a/PCbuild/_contextvars.vcxproj.filters +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - {7CBD8910-233D-4E9A-9164-9BA66C1F0E6D} - - - - - Source Files - - - diff --git a/PCbuild/pcbuild.proj b/PCbuild/pcbuild.proj index befaa1fed76b007..dbe30dd6a8a8986 100644 --- a/PCbuild/pcbuild.proj +++ b/PCbuild/pcbuild.proj @@ -50,7 +50,7 @@ - + diff --git a/Tools/msi/lib/lib_files.wxs b/Tools/msi/lib/lib_files.wxs index 4bd0c57e3229db0..a9952bdac4db916 100644 --- a/Tools/msi/lib/lib_files.wxs +++ b/Tools/msi/lib/lib_files.wxs @@ -1,6 +1,6 @@  - + From fc8476eac29e3824a86b56171eb57fd4ec2cf5ab Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Sat, 2 Feb 2019 13:34:12 -0800 Subject: [PATCH 2/2] Add NEWS item --- Misc/NEWS.d/next/Build/2019-02-02-13-34-05.bpo-34691.B-Lsj4.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Build/2019-02-02-13-34-05.bpo-34691.B-Lsj4.rst diff --git a/Misc/NEWS.d/next/Build/2019-02-02-13-34-05.bpo-34691.B-Lsj4.rst b/Misc/NEWS.d/next/Build/2019-02-02-13-34-05.bpo-34691.B-Lsj4.rst new file mode 100644 index 000000000000000..3b5aca75103b759 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2019-02-02-13-34-05.bpo-34691.B-Lsj4.rst @@ -0,0 +1,2 @@ +The _contextvars module is now built into the core Python library on +Windows.