Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b2dc4a3

Browse files
schlamarned-deily
authored andcommitted
bpo-35699: fix distuils cannot detect Build Tools 2017 anymore (GH-11495)
1 parent 2cf1dda commit b2dc4a3

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/distutils/_msvccompiler.py

Lines changed: 1 addition & 0 deletions
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
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed detection of Visual Studio Build Tools 2017 in distutils

0 commit comments

Comments
 (0)