Skip to content

Commit

Permalink
BUG: core: check platform.system for npymath
Browse files Browse the repository at this point in the history
  • Loading branch information
xoviat authored Nov 9, 2017
1 parent 41bae1e commit 2a26477
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions numpy/core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
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 (
Expand Down Expand Up @@ -686,10 +687,8 @@ def get_mathlib_info(*args):
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',
Expand Down

0 comments on commit 2a26477

Please sign in to comment.