Skip to content

Commit 404273c

Browse files
committed
windows: look for VS2019 MSBuild.exe
I don't have VS2017 installed any more. Let's use MSBuild.exe from the latest toolchain.
1 parent f0fe9ab commit 404273c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpython-windows/build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ def find_msbuild():
138138
p = subprocess.check_output(
139139
[
140140
str(vswhere),
141-
# Visual Studio 2017.
141+
# Visual Studio 2019.
142142
"-version",
143-
"[15,16)",
143+
"[16,17)",
144144
"-property",
145145
"installationPath",
146146
"-products",
@@ -151,7 +151,7 @@ def find_msbuild():
151151
# Strictly speaking the output may not be UTF-8.
152152
p = pathlib.Path(p.strip().decode("utf-8"))
153153

154-
p = p / "MSBuild" / "15.0" / "Bin" / "MSBuild.exe"
154+
p = p / "MSBuild" / "Current" / "Bin" / "MSBuild.exe"
155155

156156
if not p.exists():
157157
print("%s does not exist" % p)

0 commit comments

Comments
 (0)