Skip to content

Commit

Permalink
BUG: fix AttributeError in numpy/distutils.
Browse files Browse the repository at this point in the history
Corrects an AttributeError on windows in some cases caused by #6185

(cherry picked from commit 9b59ede)
  • Loading branch information
groutr authored and rgommers committed Oct 25, 2015
1 parent bbc687a commit c6065c8
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 c6065c8

Please sign in to comment.