|
122 | 122 | "_lzma": ["xz"],
|
123 | 123 | "_sqlite3": ["sqlite"],
|
124 | 124 | "_ssl": ["openssl"],
|
125 |
| - "_tkinter": ["tcl-8612", "tk-8612", "tix"], |
| 125 | + "_tkinter": ["tcl", "tk", "tix"], |
126 | 126 | "_uuid": ["uuid"],
|
127 | 127 | "zlib": ["zlib"],
|
128 | 128 | "_zstd": ["zstd"],
|
@@ -370,10 +370,7 @@ def hack_props(
|
370 | 370 |
|
371 | 371 | mpdecimal_version = DOWNLOADS["mpdecimal"]["version"]
|
372 | 372 |
|
373 |
| - if meets_python_minimum_version(python_version, "3.14") or arch == "arm64": |
374 |
| - tcltk_commit = DOWNLOADS["tk-windows-bin"]["git_commit"] |
375 |
| - else: |
376 |
| - tcltk_commit = DOWNLOADS["tk-windows-bin-8612"]["git_commit"] |
| 373 | + tcltk_commit = DOWNLOADS["tk-windows-bin"]["git_commit"] |
377 | 374 |
|
378 | 375 | sqlite_path = td / ("sqlite-autoconf-%s" % sqlite_version)
|
379 | 376 | bzip2_path = td / ("bzip2-%s" % bzip2_version)
|
@@ -1220,10 +1217,6 @@ def find_additional_dependencies(project: pathlib.Path):
|
1220 | 1217 | if name == "zlib":
|
1221 | 1218 | name = zlib_entry
|
1222 | 1219 |
|
1223 |
| - # On 3.14+ and aarch64, we use the latest tcl/tk version |
1224 |
| - if ext == "_tkinter" and (python_majmin == "314" or arch == "arm64"): |
1225 |
| - name = name.replace("-8612", "") |
1226 |
| - |
1227 | 1220 | download_entry = DOWNLOADS[name]
|
1228 | 1221 |
|
1229 | 1222 | # This will raise if no license metadata defined. This is
|
@@ -1307,17 +1300,8 @@ def build_cpython(
|
1307 | 1300 | setuptools_wheel = download_entry("setuptools", BUILD)
|
1308 | 1301 | pip_wheel = download_entry("pip", BUILD)
|
1309 | 1302 |
|
1310 |
| - # On CPython 3.14+, we use the latest tcl/tk version which has additional |
1311 |
| - # runtime dependencies, so we are conservative and use the old version |
1312 |
| - # elsewhere. The old version isn't built for arm64, so we use the new |
1313 |
| - # version there too |
1314 |
| - tk_bin_entry = ( |
1315 |
| - "tk-windows-bin" |
1316 |
| - if meets_python_minimum_version(python_version, "3.14") or arch == "arm64" |
1317 |
| - else "tk-windows-bin-8612" |
1318 |
| - ) |
1319 | 1303 | tk_bin_archive = download_entry(
|
1320 |
| - tk_bin_entry, BUILD, local_name="tk-windows-bin.tar.gz" |
| 1304 | + "tk-windows-bin", BUILD, local_name="tk-windows-bin.tar.gz" |
1321 | 1305 | )
|
1322 | 1306 |
|
1323 | 1307 | # On CPython 3.14+, zstd is included
|
@@ -1401,16 +1385,15 @@ def build_cpython(
|
1401 | 1385 | shutil.copyfile(source, dest)
|
1402 | 1386 |
|
1403 | 1387 | # Delete the tk nmake helper, it's not needed and links msvc
|
1404 |
| - if tk_bin_entry == "tk-windows-bin": |
1405 |
| - tcltk_commit: str = DOWNLOADS[tk_bin_entry]["git_commit"] |
1406 |
| - tcltk_path = td / ("cpython-bin-deps-%s" % tcltk_commit) |
1407 |
| - ( |
1408 |
| - tcltk_path |
1409 |
| - / build_directory |
1410 |
| - / "lib" |
1411 |
| - / "nmake" |
1412 |
| - / "x86_64-w64-mingw32-nmakehlp.exe" |
1413 |
| - ).unlink() |
| 1388 | + tcltk_commit: str = DOWNLOADS["tk-windows-bin"]["git_commit"] |
| 1389 | + tcltk_path = td / ("cpython-bin-deps-%s" % tcltk_commit) |
| 1390 | + ( |
| 1391 | + tcltk_path |
| 1392 | + / build_directory |
| 1393 | + / "lib" |
| 1394 | + / "nmake" |
| 1395 | + / "x86_64-w64-mingw32-nmakehlp.exe" |
| 1396 | + ).unlink() |
1414 | 1397 |
|
1415 | 1398 | cpython_source_path = td / ("Python-%s" % python_version)
|
1416 | 1399 | pcbuild_path = cpython_source_path / "PCbuild"
|
|
0 commit comments