diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2021-02-09 15:05:34 +0200 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2021-02-09 15:06:10 +0200 |
commit | 8468f9f1b51d3dc64c80020ff69c3a7e08f3aa84 (patch) | |
tree | fe6b15a0e2cfae7ea111113a853f193d5b62418c /numpy | |
parent | d32fd54bafc1c98c3b53709c86e7d51db19fe059 (diff) | |
download | numpy-8468f9f1b51d3dc64c80020ff69c3a7e08f3aa84.tar.gz |
MAINT: improve failure message when compiler is unavailable
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/distutils/command/config.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py index 60881f4a3..8b735677a 100644 --- a/numpy/distutils/command/config.py +++ b/numpy/distutils/command/config.py @@ -92,6 +92,8 @@ class config(old_config): 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: |