Fixed #2698 - now reads the compiler option when creating the compiler

This commit is contained in:
Tarek Ziadé 2010-03-19 21:56:34 +00:00
parent f7239567ea
commit 7c4afcb1c4
3 changed files with 4 additions and 1 deletions

View File

@ -310,7 +310,7 @@ class build_ext(Command):
# 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,
verbose=self.verbose,
dry_run=self.dry_run,
force=self.force)

View File

@ -329,6 +329,7 @@ class BuildExtTestCase(TempdirManager,
self.assertEquals(so_dir, other_tmp_dir)
cmd.inplace = 0
cmd.compiler = None
cmd.run()
so_file = cmd.get_outputs()[0]
self.assertTrue(os.path.exists(so_file))

View File

@ -17,6 +17,8 @@ Core and Builtins
Library
-------
- Issue #2698: The --compiler ignored was ignored for distutils' build_ext.
- Issue #4961: Inconsistent/wrong result of askyesno function in tkMessageBox
with Tcl/Tk-8.5.