diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-07-10 07:23:48 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-07-10 07:23:48 (GMT) |
commit | 8d65681e947e7c95173e0944ec6ea0277e66d591 (patch) | |
tree | e9ada477249a5f7ede9f701719937c45d22f43e7 /Lib/distutils/msvccompiler.py | |
parent | 56640df6c3dfd7e7a0a36789e17fc2cf88602ad4 (diff) | |
download | cpython-8d65681e947e7c95173e0944ec6ea0277e66d591.zip cpython-8d65681e947e7c95173e0944ec6ea0277e66d591.tar.gz cpython-8d65681e947e7c95173e0944ec6ea0277e66d591.tar.bz2 |
Introduce DISTUTILS_USE_SDK as a flag to determine whether the
SDK environment should be used. Fixes #1508010.
Diffstat (limited to 'Lib/distutils/msvccompiler.py')
-rw-r--r-- | Lib/distutils/msvccompiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py index d24d0ac..d725905 100644 --- a/Lib/distutils/msvccompiler.py +++ b/Lib/distutils/msvccompiler.py @@ -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" |