diff options
author | mattip <matti.picus@gmail.com> | 2019-10-24 18:49:36 +0300 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-10-25 00:27:18 +0300 |
commit | 396af7def65e75b6ef8a4e82f8aa8a357a9230f4 (patch) | |
tree | 4e373bb16120f150777f2a8dcdbf276c1f851484 | |
parent | a2a131fb95700395b606f85f19edb49f50d6d5fa (diff) | |
download | numpy-396af7def65e75b6ef8a4e82f8aa8a357a9230f4.tar.gz |
BUILD: emit more helpful error messages when compiler is broken
-rw-r--r-- | numpy/core/setup.py | 6 | ||||
-rw-r--r-- | numpy/distutils/system_info.py | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 5f2f4a7b2..7bbe27c4d 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -655,7 +655,11 @@ def configuration(parent_package='',top_path=None): # compiler does not work). st = config_cmd.try_link('int main(void) { return 0;}') if not st: - raise RuntimeError("Broken toolchain: cannot link a simple C program") + config_cmd.compiler.verbose = True + st = config_cmd.try_link('int main(void) { return 0;}') + raise RuntimeError("Broken toolchain: cannot link a simple C program " + "when using these flags:\n" + ) mlibs = check_mathlib(config_cmd) posix_mlib = ' '.join(['-l%s' % l for l in mlibs]) diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py index 5fd1003ab..96d06f654 100644 --- a/numpy/distutils/system_info.py +++ b/numpy/distutils/system_info.py @@ -1580,7 +1580,7 @@ def get_atlas_version(**config): log.info('Status: %d', s) log.info('Output: %s', o) - if atlas_version == '3.2.1_pre3.3.6': + elif atlas_version == '3.2.1_pre3.3.6': dict_append(info, define_macros=[('NO_ATLAS_INFO', -2)]) else: dict_append(info, define_macros=[( |