summaryrefslogtreecommitdiff
path: root/numpy/distutils/ccompiler.py
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2016-08-12 11:18:23 +1200
committerGitHub <noreply@github.com>2016-08-12 11:18:23 +1200
commite1f191c46f2eebd6cb892a4bfe14d9dd43a06c4e (patch)
treef1b3b994ace104b4adacff025e820670a57bf117 /numpy/distutils/ccompiler.py
parent5130ef1b3d8cdd984a937ccf8c168d65c91cefc4 (diff)
parentc14a462fafb92be8c17d5e180f7c2ed986f2eef2 (diff)
downloadnumpy-e1f191c46f2eebd6cb892a4bfe14d9dd43a06c4e.tar.gz
Merge pull request #7925 from vallsv/fix-msvccompile-gen-lib-option
MAINT: Monkey-patch _msvccompile.gen_lib_option like any other compilators
Diffstat (limited to 'numpy/distutils/ccompiler.py')
-rw-r--r--numpy/distutils/ccompiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py
index 2f2d63b59..af48d1d63 100644
--- a/numpy/distutils/ccompiler.py
+++ b/numpy/distutils/ccompiler.py
@@ -617,7 +617,7 @@ ccompiler.gen_lib_options = gen_lib_options
# 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 ['msvc9', 'msvc', 'bcpp', 'cygwinc', 'emxc', 'unixc']:
+for _cc in ['msvc9', 'msvc', '_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)