@@ -1023,6 +1023,7 @@ def detect_simple_extensions(self):
10231023
10241024 self .addext (Extension ("_queue" , ["_queuemodule.c" ]))
10251025 self .addext (Extension ("_statistics" , ["_statisticsmodule.c" ]))
1026+ self .addext (Extension ("_struct" , ["_struct.c" ]))
10261027 self .addext (Extension ("_typing" , ["_typingmodule.c" ]))
10271028
10281029 # Modules with some UNIX dependencies -- on by default:
@@ -1446,6 +1447,9 @@ def detect_uuid(self):
14461447 self .missing .append ('_uuid' )
14471448
14481449 def detect_modules (self ):
1450+ # remove dummy extension
1451+ self .extensions = []
1452+
14491453 self .configure_compiler ()
14501454 self .init_inc_lib_dirs ()
14511455
@@ -2100,9 +2104,9 @@ class DummyProcess:
21002104 'build_scripts' : PyBuildScripts ,
21012105 'install' : PyBuildInstall ,
21022106 'install_lib' : PyBuildInstallLib },
2103- # The struct module is defined here, because build_ext won't be
2107+ # A dummy module is defined here, because build_ext won't be
21042108 # called unless there's at least one extension module defined.
2105- ext_modules = [Extension ('_struct ' , ['_struct .c' ])],
2109+ ext_modules = [Extension ('_dummy ' , ['_dummy .c' ])],
21062110
21072111 # If you change the scripts installed here, you also need to
21082112 # check the PyBuildScripts command above, and change the links
0 commit comments