Skip to content

Commit

Permalink
MAINT: improve failure message when compiler is unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
pearu committed Feb 9, 2021
1 parent d32fd54 commit 8468f9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions numpy/distutils/command/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def _wrap_method(self, mth, lang, args):
save_compiler = self.compiler
if lang in ['f77', 'f90']:
self.compiler = self.fcompiler
if self.compiler is None:
raise CompileError('%s compiler is not set' % (lang,))
try:
ret = mth(*((self,)+args))
except (DistutilsExecError, CompileError) as e:
Expand Down

0 comments on commit 8468f9f

Please sign in to comment.