summaryrefslogtreecommitdiff
path: root/numpy/distutils/intelccompiler.py
diff options
context:
space:
mode:
authoryolanda15 <yolanda15@users.noreply.github.com>2015-08-19 09:14:18 +0800
committeryolanda15 <yolanda15@users.noreply.github.com>2015-08-19 09:14:18 +0800
commitfacea220d2e31a8e8201f546ad636b754886a88c (patch)
treecc935db7c45933595abd8fc5da041023a4eb81b5 /numpy/distutils/intelccompiler.py
parent84e39ce41439df1c1f488f76c3b6d3580d858561 (diff)
downloadnumpy-facea220d2e31a8e8201f546ad636b754886a88c.tar.gz
BLD: add platform check to avoid intel compiler build failure on Linux when importing MSVC
Diffstat (limited to 'numpy/distutils/intelccompiler.py')
-rw-r--r--numpy/distutils/intelccompiler.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/distutils/intelccompiler.py b/numpy/distutils/intelccompiler.py
index 047b6714e..2206f7fcb 100644
--- a/numpy/distutils/intelccompiler.py
+++ b/numpy/distutils/intelccompiler.py
@@ -4,8 +4,6 @@ import sys
from distutils.unixccompiler import UnixCCompiler
from numpy.distutils.exec_command import find_executable
-if sys.platform == 'win32':
- from distutils.msvc9compiler import MSVCCompiler
from numpy.distutils.ccompiler import simple_version_match
@@ -58,6 +56,7 @@ class IntelEM64TCCompiler(UnixCCompiler):
if sys.platform == 'win32':
+ from distutils.msvc9compiler import MSVCCompiler
class IntelCCompilerW(MSVCCompiler):
"""
A modified Intel compiler on Windows compatible with an MSVC-built Python.