Skip to content

Commit fc69e3d

Browse files
committed
Add support for building with Visual Studio 2026
1 parent f322ad6 commit fc69e3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cpython-windows/build.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ def find_vs_path(path, msvc_version):
243243
version = "[16,17)"
244244
elif msvc_version == "2022":
245245
version = "[17,18)"
246+
elif msvc_version == "2026":
247+
version = "[18,19)"
246248
else:
247249
raise ValueError(f"unsupported Visual Studio version: {msvc_version}")
248250

@@ -1870,7 +1872,7 @@ def main() -> None:
18701872
parser = argparse.ArgumentParser()
18711873
parser.add_argument(
18721874
"--vs",
1873-
choices={"2019", "2022"},
1875+
choices={"2019", "2022", "2026"},
18741876
default="2022",
18751877
help="Visual Studio version to use",
18761878
)

0 commit comments

Comments
 (0)