Skip to content

Commit

Permalink
Merge pull request #6561 from rgommers/bport-6470
Browse files Browse the repository at this point in the history
BUG: fix AttributeError in numpy/distutils.
  • Loading branch information
charris committed Oct 25, 2015
2 parents bbc687a + c6065c8 commit 329de93
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 329de93

Please sign in to comment.