gh-132649: Allow passing --include-tcltk to PC\layout on Windows ARM64 (GH-132650)

This commit is contained in:
Steve Dower 2025-04-17 20:14:00 +01:00 committed by GitHub
parent cf59bc3ae7
commit b87189deae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
The :file:`PC\layout` script now allows passing ``--include-tcltk`` on
Windows ARM64.

View file

@ -657,7 +657,7 @@ Catalog: {ns.catalog}""",
if ns.arch not in ("win32", "amd64", "arm32", "arm64"):
log_error("--arch is not a valid value (win32, amd64, arm32, arm64)")
return 4
if ns.arch in ("arm32", "arm64"):
if ns.arch == "arm32":
for n in ("include_idle", "include_tcltk"):
if getattr(ns, n):
log_warning(f"Disabling --{n.replace('_', '-')} on unsupported platform")