Since we've already set everything we need in the environment set DISTUTILS_USE_SDK so distutils won't try to do it all again.

This commit is contained in:
Robin Dunn
2022-05-16 22:37:02 -07:00
parent 9cd319734e
commit 7413837833

View File

@@ -1011,6 +1011,11 @@ def getMSVCInfo(PYTHON, arch, set_env=False):
os.environ['LIB'] = info.lib
os.environ['LIBPATH'] = info.libpath
# We already have everything we need, tell distutils to not go hunting
# for it all again if it happens to be called.
os.environ['DISTUTILS_USE_SDK'] = "1"
os.environ['MSSdk'] = "1"
MSVCinfo = info
return info