Commit c01b350d authored by Jeremy Hylton's avatar Jeremy Hylton

Only import msvccompiler on win32 platforms.

parent 83ccb4e0
...@@ -624,9 +624,9 @@ class build_ext (Command): ...@@ -624,9 +624,9 @@ class build_ext (Command):
# pyconfig.h that MSVC groks. The other Windows compilers all seem # pyconfig.h that MSVC groks. The other Windows compilers all seem
# to need it mentioned explicitly, though, so that's what we do. # to need it mentioned explicitly, though, so that's what we do.
# Append '_d' to the python import library on debug builds. # Append '_d' to the python import library on debug builds.
if sys.platform == "win32":
from distutils.msvccompiler import MSVCCompiler from distutils.msvccompiler import MSVCCompiler
if sys.platform == "win32" and \ if not isinstance(self.compiler, MSVCCompiler):
not isinstance(self.compiler, MSVCCompiler):
template = "python%d%d" template = "python%d%d"
if self.debug: if self.debug:
template = template + '_d' template = template + '_d'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment