Skip to content

Commit 310b052

Browse files
authored
bpo-32604: Make _xxsubinterpreters build on Windows (pythonGH-5516)
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?
1 parent 136c8e0 commit 310b052

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

PC/config.c

Lines changed: 3 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy