summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2019-04-21 18:36:02 +0200
committerRalf Gommers <ralf.gommers@gmail.com>2019-04-21 18:37:48 +0200
commit1fab31d24603dbebbd82be7e73f38d5de321f6b8 (patch)
tree3a8e59e45962df2d24f2965850f190a6a8266d8d /numpy/core/setup.py
parent9050e0bcba7775fcb7fec15d1d242bafc8c0ed0c (diff)
downloadnumpy-1fab31d24603dbebbd82be7e73f38d5de321f6b8.tar.gz
BLD: address mingw-w64 issue. Follow-up to gh-9977
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r--numpy/core/setup.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index 9f1ecf358..45b4fb3c7 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -685,7 +685,9 @@ def configuration(parent_package='',top_path=None):
]
# Must be true for CRT compilers but not MinGW/cygwin. See gh-9977.
- is_msvc = platform.system() == 'Windows'
+ # Intel and Clang also don't seem happy with /GL
+ is_msvc = (platform.platform().startswith('Windows') and
+ platform.python_compiler().startswith('MS'))
config.add_installed_library('npymath',
sources=npymath_sources + [get_mathlib_info],
install_dir='lib',