mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
Let the SDK setup override distutils logic.
This commit is contained in:
parent
5771310a09
commit
e46af8c367
1 changed files with 23 additions and 13 deletions
|
|
@ -214,6 +214,16 @@ class MSVCCompiler (CCompiler) :
|
||||||
self.initialized = False
|
self.initialized = False
|
||||||
|
|
||||||
def initialize(self):
|
def initialize(self):
|
||||||
|
self.__paths = []
|
||||||
|
if 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"
|
||||||
|
self.linker = "link.exe"
|
||||||
|
self.lib = "lib.exe"
|
||||||
|
self.rc = "rc.exe"
|
||||||
|
self.mc = "mc.exe"
|
||||||
|
else:
|
||||||
self.__paths = self.get_msvc_paths("path")
|
self.__paths = self.get_msvc_paths("path")
|
||||||
|
|
||||||
if len (self.__paths) == 0:
|
if len (self.__paths) == 0:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue