bpo-35699: fix distuils cannot detect Build Tools 2017 anymore (GH-11… · python/cpython@2fa53cf

Original file line numberDiff line numberDiff line change

@@ -78,6 +78,7 @@ def _find_vc2017():

7878

"-prerelease",

7979

"-requires", "Microsoft.VisualStudio.Component.VC.Tools.x86.x64",

8080

"-property", "installationPath",

81+

"-products", "*",

8182

], encoding="mbcs", errors="strict").strip()

8283

except (subprocess.CalledProcessError, OSError, UnicodeDecodeError):

8384

return None, None