summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-08-16 14:08:02 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-08-16 14:08:02 (GMT)
commitb1d60294372ca4fa444b43eca4200ecc854ff359 (patch)
tree622f198b1876bd2fa9208288c4bb5b101796402b /Lib/distutils
parent6fb8d3a3d6dc74a971811f2936343725f3cdea12 (diff)
downloadcpython-b1d60294372ca4fa444b43eca4200ecc854ff359.zip
cpython-b1d60294372ca4fa444b43eca4200ecc854ff359.tar.gz
cpython-b1d60294372ca4fa444b43eca4200ecc854ff359.tar.bz2
[Patch #444854 from twburton]
Add executable extension, needed to get the program name right on Win32
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/config.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/distutils/command/config.py b/Lib/distutils/command/config.py
index 2df42a5..b89997a 100644
--- a/Lib/distutils/command/config.py
+++ b/Lib/distutils/command/config.py
@@ -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):