Introduce DISTUTILS_USE_SDK as a flag to determine whether the

SDK environment should be used. Fixes #1508010.
This commit is contained in:
Martin v. Löwis 2006-07-10 07:23:48 +00:00
parent 56640df6c3
commit 8d65681e94
3 changed files with 19 additions and 4 deletions

View file

@ -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"