]> granicus.if.org Git - python/commitdiff
Fixed #2698 - now reads the compiler option when creating the compiler
authorTarek Ziadé <ziade.tarek@gmail.com>
Fri, 19 Mar 2010 21:56:34 +0000 (21:56 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Fri, 19 Mar 2010 21:56:34 +0000 (21:56 +0000)
Lib/distutils/command/build_ext.py
Lib/distutils/tests/test_build_ext.py
Misc/NEWS

index 15965864999c5a02715544f5b2da5c7f5c7e17a5..bd61bc56f32ca3b8779b23fa92c66e1adfe1ab3c 100644 (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)
index f992928d0a07d183d192ceccb3690836d59dc2b1..b7cdc20aa478db975279253eeba04ac641581044 100644 (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))
index 4103a257df2aa498976da645dd882a8e9b920dad..094043d88b9b79dafeeef398e857d7df6404da13 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.