aboutsummaryrefslogtreecommitdiffstats
path: root/msvccompiler.py
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2003-12-05 20:12:23 +0000
committerThomas Heller <theller@ctypes.org>2003-12-05 20:12:23 +0000
commit21a1ad1c19eeab489dc344c59f0cd027bda50dd7 (patch)
tree96b05348868271a7ac08a6eb09fe14e258f64515 /msvccompiler.py
parent2a97217f7fae82ae141e9dc1a426146dca203b04 (diff)
downloadexternal_python_setuptools-21a1ad1c19eeab489dc344c59f0cd027bda50dd7.tar.gz
external_python_setuptools-21a1ad1c19eeab489dc344c59f0cd027bda50dd7.tar.bz2
external_python_setuptools-21a1ad1c19eeab489dc344c59f0cd027bda50dd7.zip
Compile the files in the same order they are passed to the compiler.
Use case: Sometimes 'compiling' source files (with SWIG, for example) creates additionl files which included by later sources. The win32all setup script requires this. There is no SF item for this, but it was discussed on distutils-sig: http://mail.python.org/pipermail/distutils-sig/2003-November/003514.html
Diffstat (limited to 'msvccompiler.py')
-rw-r--r--msvccompiler.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/msvccompiler.py b/msvccompiler.py
index 27fb658b..1441ea04 100644
--- a/msvccompiler.py
+++ b/msvccompiler.py
@@ -291,7 +291,11 @@ class MSVCCompiler (CCompiler) :
else:
compile_opts.extend(self.compile_options)
- for obj, (src, ext) in build.items():
+ for obj in objects:
+ try:
+ src, ext = build[obj]
+ except KeyError:
+ continue
if debug:
# pass the full pathname to MSVC in debug mode,
# this allows the debugger to find the source file