From 35b4920112857d5d58bae3ec076d6497a48be490 Mon Sep 17 00:00:00 2001 From: Gabi Davar Date: Mon, 13 Apr 2015 20:33:26 +0300 Subject: [PATCH] LIBPATH with spaces is now supported Python 2.7+ and Win32 --- numpy/distutils/ccompiler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py index 8484685c0f97..c8cacff7f260 100644 --- a/numpy/distutils/ccompiler.py +++ b/numpy/distutils/ccompiler.py @@ -583,8 +583,8 @@ def gen_lib_options(compiler, library_dirs, runtime_library_dirs, libraries): # Also fix up the various compiler modules, which do # from distutils.ccompiler import gen_lib_options # Don't bother with mwerks, as we don't support Classic Mac. -for _cc in ['msvc', 'bcpp', 'cygwinc', 'emxc', 'unixc']: - _m = sys.modules.get('distutils.'+_cc+'compiler') +for _cc in ['msvc9', 'msvc', 'bcpp', 'cygwinc', 'emxc', 'unixc']: + _m = sys.modules.get('distutils.' + _cc + 'compiler') if _m is not None: setattr(_m, 'gen_lib_options', gen_lib_options)