From 8468f9f1b51d3dc64c80020ff69c3a7e08f3aa84 Mon Sep 17 00:00:00 2001 From: Pearu Peterson Date: Tue, 9 Feb 2021 15:05:34 +0200 Subject: MAINT: improve failure message when compiler is unavailable --- numpy/distutils/command/config.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'numpy') 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: -- cgit v1.2.1