[Numpy-svn] r5282 - trunk/numpy/distutils/command

numpy-svn@scip... numpy-svn@scip...
Thu Jun 12 10:16:43 CDT 2008


Author: cdavid
Date: 2008-06-12 10:16:07 -0500 (Thu, 12 Jun 2008)
New Revision: 5282

Modified:
   trunk/numpy/distutils/command/scons.py
Log:
Do not fail scons command when cxx compiler is not available.

Modified: trunk/numpy/distutils/command/scons.py
===================================================================
--- trunk/numpy/distutils/command/scons.py	2008-06-12 10:56:20 UTC (rev 5281)
+++ trunk/numpy/distutils/command/scons.py	2008-06-12 15:16:07 UTC (rev 5282)
@@ -323,7 +323,10 @@
             cxxcompiler.customize(self.distribution, need_cxx = 1)
             cxxcompiler.customize_cmd(self)
             self.cxxcompiler = cxxcompiler.cxx_compiler()
-            #print self.cxxcompiler.compiler_cxx[0]
+            try:
+                get_cxx_tool_path(self.cxxcompiler)
+            except DistutilsSetupError:
+                self.cxxcompiler = None
 
         if self.package_list:
             self.package_list = parse_package_list(self.package_list)



More information about the Numpy-svn mailing list