diff options
author | xoviat <xoviat@users.noreply.github.com> | 2017-11-08 18:58:58 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-08 18:58:58 -0600 |
commit | 2a26477c67bf319428ddcb78a5b6a8777754b845 (patch) | |
tree | 49c73894a471f7f2f561e8a4ef321584960d9baa /numpy/core/setup.py | |
parent | 41bae1ed7fa47213b45abacdf7ed19abdb58c7b3 (diff) | |
download | numpy-2a26477c67bf319428ddcb78a5b6a8777754b845.tar.gz |
BUG: core: check platform.system for npymath
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r-- | numpy/core/setup.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index b3013d299..df2d41aa1 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -6,8 +6,9 @@ import pickle import copy import sysconfig import warnings +import platform from os.path import join -from numpy.distutils import log, customized_ccompiler +from numpy.distutils import log from distutils.dep_util import newer from distutils.sysconfig import get_config_var from numpy._build_utils.apple_accelerate import ( @@ -686,10 +687,8 @@ def configuration(parent_package='',top_path=None): join('src', 'npymath', 'halffloat.c') ] - compiler_type = customized_ccompiler().compiler_type - is_msvc = compiler_type == 'msvc' - is_msvc = is_msvc or (sys.platform == 'win32' and compiler_type in ('clang', 'intel')) - + # Must be true for CRT compilers but not MinGW/cygwin. See gh-9977. + is_msvc = platform.system() == 'Windows' config.add_installed_library('npymath', sources=npymath_sources + [get_mathlib_info], install_dir='lib', |