From a448495dbef6809b2837e07c4fc9c2657e1d67a2 Mon Sep 17 00:00:00 2001 From: Julian Taylor Date: Wed, 5 Apr 2017 21:56:08 +0200 Subject: ENH: automatically determine compile dependencies Use these dependencies to avoid unnecessary recompilations of unchanged files. --- numpy/distutils/tests/test_system_info.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'numpy/distutils/tests/test_system_info.py') diff --git a/numpy/distutils/tests/test_system_info.py b/numpy/distutils/tests/test_system_info.py index 3576de814..73b841692 100644 --- a/numpy/distutils/tests/test_system_info.py +++ b/numpy/distutils/tests/test_system_info.py @@ -65,7 +65,8 @@ def have_compiler(): cmd = compiler.compiler # Unix compilers except AttributeError: try: - compiler.initialize() # MSVC is different + if not compiler.initialized: + compiler.initialize() # MSVC is different except DistutilsError: return False cmd = [compiler.cc] -- cgit v1.2.1