[New-bugs-announce] [issue7068] 2.6.3 does not use specified compiler

Shun-ichi Goto report at bugs.python.org
Tue Oct 6 05:12:05 CEST 2009

New submission from Shun-ichi Goto <shunichi.goto at gmail.com>:

I installed python 2.6.3 on windows from .msi installer and get problem
to build ext modules with MinGW compiler.

It seems that Python 2.6.3 does not use compiler specified by user
via --compiler=xxx or setup.cfg on building ext module. Thus, MSVC
compiler is always used or show unreasonable error message
"error: Unable to find vcvarsall.bat" although specifying

I found the change of r72594 cause this issue.

  [projects] Diff of

And following patch get the behaviour like before, but I don't 
see why this change is introduced (merged from trunk).

diff -r 5874f642b473 distutils/command/build_ext.py
--- a/distutils/command/build_ext.py	Tue Oct 06 10:39:34 2009 +0900
+++ b/distutils/command/build_ext.py	Tue Oct 06 10:43:14 2009 +0900
@@ -303,7 +303,7 @@
         # Setup the CCompiler object that we'll use to do all the
         # compiling and linking
-        self.compiler = new_compiler(compiler=None,
+        self.compiler = new_compiler(compiler=self.compiler,


Is there any changes the way to specifying compiler?

assignee: tarek
components: Distutils
messages: 93630
nosy: gotoh, tarek
severity: normal
status: open
title: 2.6.3 does not use specified compiler
versions: Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list