Skip to content

Commit acc9f57

Browse files
committed
Merge pull request numpy#6470 from groutr/fix_attrerror
BUG: fix AttributeError in numpy distutils
2 parents 53d7e68 + 9b59ede commit acc9f57

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

numpy/distutils/ccompiler.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,10 +385,11 @@ def CCompiler_customize(self, dist, need_cxx=0):
385385
a, b = 'cc', 'c++'
386386
self.compiler_cxx = [self.compiler[0].replace(a, b)]\
387387
+ self.compiler[1:]
388-
elif not self.compiler_cxx:
388+
else:
389389
if hasattr(self, 'compiler'):
390390
log.warn("#### %s #######" % (self.compiler,))
391-
log.warn('Missing compiler_cxx fix for '+self.__class__.__name__)
391+
if not hasattr(self, 'compiler_cxx'):
392+
log.warn('Missing compiler_cxx fix for ' + self.__class__.__name__)
392393
return
393394

394395
replace_method(CCompiler, 'customize', CCompiler_customize)

0 commit comments

Comments
 (0)