summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-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)