Skip to content

Commit f63a9d3

Browse files
uranusjrindygreg
authored andcommitted
windows: fix MSBuild discovery via vswhere
See https://bugs.python.org/issue35699
1 parent 3f5ea20 commit f63a9d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpython-windows/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def find_msbuild():
117117
print('%s does not exist' % vswhere)
118118
sys.exit(1)
119119

120-
p = subprocess.check_output([str(vswhere), '-latest', '-property', 'installationPath'])
120+
p = subprocess.check_output([str(vswhere), '-latest', '-property', 'installationPath', '-products', '*'])
121121

122122
# Strictly speaking the output may not be UTF-8.
123123
p = pathlib.Path(p.strip().decode('utf-8'))

0 commit comments

Comments
 (0)