Skip to content

Commit

Permalink
Add Python 3.14 support on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Jan 14, 2025
1 parent 2d8972d commit 929b22f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ci-targets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ windows:
- "3.11"
- "3.12"
- "3.13"
- "3.14"
build_options:
- pgo
build_options_conditional:
Expand All @@ -336,6 +337,7 @@ windows:
- "3.11"
- "3.12"
- "3.13"
- "3.14"
build_options:
- pgo
build_options_conditional:
Expand Down
4 changes: 3 additions & 1 deletion cpython-windows/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,8 @@ def hack_project_files(

# We're still on the pre-built tk-windows-bin 8.6.12 which doesn't have a
# standalone zlib DLL. So remove references to it from 3.12+.
if meets_python_minimum_version(python_version, "3.12"):
# On 3.14, something changed
if meets_python_minimum_version(python_version, "3.12") and meets_python_maximum_version(python_version, "3.13"):
static_replace_in_file(
pcbuild_path / "_tkinter.vcxproj",
rb'<_TclTkDLL Include="$(tcltkdir)\bin\$(tclZlibDllName)" />',
Expand Down Expand Up @@ -1690,6 +1691,7 @@ def main() -> None:
"cpython-3.11",
"cpython-3.12",
"cpython-3.13",
"cpython-3.14",
},
default="cpython-3.11",
help="Python distribution to build",
Expand Down

0 comments on commit 929b22f

Please sign in to comment.