Skip to content

Commit

Permalink
Merge pull request numpy#6470 from groutr/fix_attrerror
Browse files Browse the repository at this point in the history
BUG: fix AttributeError in numpy distutils
  • Loading branch information
rgommers committed Oct 25, 2015
2 parents 53d7e68 + 9b59ede commit acc9f57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions numpy/distutils/ccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit acc9f57

Please sign in to comment.