diff options
author | Ralf Gommers <ralf.gommers@gmail.com> | 2015-10-25 16:32:45 +0100 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@gmail.com> | 2015-10-25 16:32:45 +0100 |
commit | acc9f5729d90d6590b12671745eebe2e88ef231d (patch) | |
tree | 8592af61a5e9f2f9aa9fc3d47dcc4fb974ff1774 /numpy | |
parent | 53d7e68b410ca00a825899a8a766bba3ba77cbc3 (diff) | |
parent | 9b59edebeadddf8012459e401434353b2de8babb (diff) | |
download | numpy-acc9f5729d90d6590b12671745eebe2e88ef231d.tar.gz |
Merge pull request #6470 from groutr/fix_attrerror
BUG: fix AttributeError in numpy distutils
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/distutils/ccompiler.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py index b5970d76f..ad235ed19 100644 --- a/numpy/distutils/ccompiler.py +++ b/numpy/distutils/ccompiler.py @@ -385,10 +385,11 @@ def CCompiler_customize(self, dist, need_cxx=0): a, b = 'cc', 'c++' self.compiler_cxx = [self.compiler[0].replace(a, b)]\ + self.compiler[1:] - elif not self.compiler_cxx: + else: if hasattr(self, 'compiler'): log.warn("#### %s #######" % (self.compiler,)) - log.warn('Missing compiler_cxx fix for '+self.__class__.__name__) + if not hasattr(self, 'compiler_cxx'): + log.warn('Missing compiler_cxx fix for ' + self.__class__.__name__) return replace_method(CCompiler, 'customize', CCompiler_customize) |