]> granicus.if.org Git - python/commitdiff
[Patch #444854 from twburton]
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 16 Aug 2001 14:08:02 +0000 (14:08 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 16 Aug 2001 14:08:02 +0000 (14:08 +0000)
    Add executable extension, needed to get the program name right on Win32

Lib/distutils/command/config.py

index 2df42a572286e2e4527df4cfac5a23ba59d12275..b89997a2931b705dcee01d75a722c0e7c6098fd0 100644 (file)
@@ -148,10 +148,13 @@ class config (Command):
                libraries, library_dirs, lang):
         (src, obj) = self._compile(body, headers, include_dirs, lang)
         prog = os.path.splitext(os.path.basename(src))[0] 
-        self.temp_files.append(prog)    # XXX should be prog + exe_ext
         self.compiler.link_executable([obj], prog,
                                       libraries=libraries,
                                       library_dirs=library_dirs)
+
+        prog = prog + self.compiler.exe_extension
+        self.temp_files.append(prog)
+
         return (src, obj, prog)
 
     def _clean (self, *filenames):