Skip to content

Commit fe61e8d

Browse files
miss-islingtonzware
andcommitted
bpo-32604: Make _xxsubinterpreters build on Windows (GH-5624)
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? (cherry picked from commit 310b052) Co-authored-by: Zachary Ware <[email protected]>
1 parent a0b998d commit fe61e8d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

PC/config.c

+3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ extern PyObject* PyInit__locale(void);
3131
#endif
3232
extern PyObject* PyInit__codecs(void);
3333
extern PyObject* PyInit__weakref(void);
34+
/* XXX: These two should really be extracted to standalone extensions. */
3435
extern PyObject* PyInit_xxsubtype(void);
36+
extern PyObject* PyInit__xxsubinterpreters(void);
3537
extern PyObject* PyInit_zipimport(void);
3638
extern PyObject* PyInit__random(void);
3739
extern PyObject* PyInit_itertools(void);
@@ -126,6 +128,7 @@ struct _inittab _PyImport_Inittab[] = {
126128
{"_json", PyInit__json},
127129

128130
{"xxsubtype", PyInit_xxsubtype},
131+
{"_xxsubinterpreters", PyInit__xxsubinterpreters},
129132
{"zipimport", PyInit_zipimport},
130133
#ifdef _Py_HAVE_ZLIB
131134
{"zlib", PyInit_zlib},

PCbuild/pythoncore.vcxproj

+1
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@
279279
<ClCompile Include="..\Modules\_tracemalloc.c" />
280280
<ClCompile Include="..\Modules\timemodule.c" />
281281
<ClCompile Include="..\Modules\xxsubtype.c" />
282+
<ClCompile Include="..\Modules\_xxsubinterpretersmodule.c" />
282283
<ClCompile Include="..\Modules\zipimport.c" />
283284
<ClCompile Include="..\Modules\_io\fileio.c" />
284285
<ClCompile Include="..\Modules\_io\bytesio.c" />

0 commit comments

Comments
 (0)