mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Only import msvccompiler on win32 platforms.
This commit is contained in:
parent
83ccb4e011
commit
c01b350d36
1 changed files with 11 additions and 11 deletions
|
@ -624,9 +624,9 @@ class build_ext (Command):
|
|||
# pyconfig.h that MSVC groks. The other Windows compilers all seem
|
||||
# to need it mentioned explicitly, though, so that's what we do.
|
||||
# Append '_d' to the python import library on debug builds.
|
||||
if sys.platform == "win32":
|
||||
from distutils.msvccompiler import MSVCCompiler
|
||||
if sys.platform == "win32" and \
|
||||
not isinstance(self.compiler, MSVCCompiler):
|
||||
if not isinstance(self.compiler, MSVCCompiler):
|
||||
template = "python%d%d"
|
||||
if self.debug:
|
||||
template = template + '_d'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue