mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Introduce DISTUTILS_USE_SDK as a flag to determine whether the
SDK environment should be used. Fixes #1508010.
This commit is contained in:
parent
56640df6c3
commit
8d65681e94
3 changed files with 19 additions and 4 deletions
|
|
@ -237,7 +237,7 @@ class MSVCCompiler (CCompiler) :
|
|||
|
||||
def initialize(self):
|
||||
self.__paths = []
|
||||
if os.environ.has_key("MSSdk") and self.find_exe("cl.exe"):
|
||||
if os.environ.has_key("DISTUTILS_USE_SDK") and os.environ.has_key("MSSdk") and self.find_exe("cl.exe"):
|
||||
# Assume that the SDK set up everything alright; don't try to be
|
||||
# smarter
|
||||
self.cc = "cl.exe"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue