summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-06-12 15:16:07 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-06-12 15:16:07 +0000
commit09791d29b5e3cc5a53b536e935f7b6b7105d7b48 (patch)
treeb9a27282619f61f7f8ea218a5d96044f9f81c385
parentd46b16200f21823a1d35deaa7bde283126f67616 (diff)
downloadnumpy-09791d29b5e3cc5a53b536e935f7b6b7105d7b48.tar.gz
Do not fail scons command when cxx compiler is not available.
-rw-r--r--numpy/distutils/command/scons.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/distutils/command/scons.py b/numpy/distutils/command/scons.py
index 591643585..672a13acb 100644
--- a/numpy/distutils/command/scons.py
+++ b/numpy/distutils/command/scons.py
@@ -323,7 +323,10 @@ class scons(old_build_ext):
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)