mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
bpo-35699: fix distuils cannot detect Build Tools 2017 anymore (GH-11495)
This commit is contained in:
parent
2cf1ddaff4
commit
b2dc4a3313
2 changed files with 2 additions and 0 deletions
|
@ -78,6 +78,7 @@ def _find_vc2017():
|
||||||
"-prerelease",
|
"-prerelease",
|
||||||
"-requires", "Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
|
"-requires", "Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
|
||||||
"-property", "installationPath",
|
"-property", "installationPath",
|
||||||
|
"-products", "*",
|
||||||
], encoding="mbcs", errors="strict").strip()
|
], encoding="mbcs", errors="strict").strip()
|
||||||
except (subprocess.CalledProcessError, OSError, UnicodeDecodeError):
|
except (subprocess.CalledProcessError, OSError, UnicodeDecodeError):
|
||||||
return None, None
|
return None, None
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Fixed detection of Visual Studio Build Tools 2017 in distutils
|
Loading…
Add table
Add a link
Reference in a new issue