]> granicus.if.org Git - python/commitdiff
bpo-32604: Make _xxsubinterpreters build on Windows (GH-5516)
authorZachary Ware <zachary.ware@gmail.com>
Sun, 11 Feb 2018 16:43:48 +0000 (10:43 -0600)
committerGitHub <noreply@github.com>
Sun, 11 Feb 2018 16:43:48 +0000 (10:43 -0600)
This is not the ideal solution; this means that a test module is now
always included in the main python3x.dll.  However, we're already
including xxsubtype, so why not?

PC/config.c
PCbuild/pythoncore.vcxproj

index 6209d7e284f3fdd6b0d84c4ecc80adf6bee172a8..0c08bfeaa0dc5d6e272382fe50b5e9dc1f73448c 100644 (file)
@@ -31,7 +31,9 @@ extern PyObject* PyInit__locale(void);
 #endif
 extern PyObject* PyInit__codecs(void);
 extern PyObject* PyInit__weakref(void);
+/* XXX: These two should really be extracted to standalone extensions. */
 extern PyObject* PyInit_xxsubtype(void);
+extern PyObject* PyInit__xxsubinterpreters(void);
 extern PyObject* PyInit_zipimport(void);
 extern PyObject* PyInit__random(void);
 extern PyObject* PyInit_itertools(void);
@@ -126,6 +128,7 @@ struct _inittab _PyImport_Inittab[] = {
     {"_json", PyInit__json},
 
     {"xxsubtype", PyInit_xxsubtype},
+    {"_xxsubinterpreters", PyInit__xxsubinterpreters},
     {"zipimport", PyInit_zipimport},
 #ifdef _Py_HAVE_ZLIB
     {"zlib", PyInit_zlib},
index f30945508698afa36ff628a128269109d2138e61..bf4131e91b0a153814feaa05cdbfc4d7d7f3ee39 100644 (file)
     <ClCompile Include="..\Modules\_tracemalloc.c" />
     <ClCompile Include="..\Modules\timemodule.c" />
     <ClCompile Include="..\Modules\xxsubtype.c" />
+    <ClCompile Include="..\Modules\_xxsubinterpretersmodule.c" />
     <ClCompile Include="..\Modules\zipimport.c" />
     <ClCompile Include="..\Modules\_io\fileio.c" />
     <ClCompile Include="..\Modules\_io\bytesio.c" />