@@ -1116,7 +1116,7 @@ def find_additional_dependencies(project: pathlib.Path):
1116
1116
elif arch == "arm64" :
1117
1117
abi_platform = "win_arm64"
1118
1118
else :
1119
- raise ValueError ("unhandled arch : %s" % arch )
1119
+ raise Exception ("unhandled architecture : %s" % arch )
1120
1120
1121
1121
if freethreaded :
1122
1122
abi_tag = ".cp%st-%s" % (python_majmin , abi_platform )
@@ -1216,7 +1216,7 @@ def find_additional_dependencies(project: pathlib.Path):
1216
1216
1217
1217
if name == "zlib" :
1218
1218
name = zlib_entry
1219
- :
1219
+
1220
1220
# On 3.14+ and aarch64, we use the latest tcl/tk version
1221
1221
if ext == "_tkinter" and (python_majmin == "314" or arch == "arm64" ):
1222
1222
name = name .replace ("-8612" , "" )
@@ -1308,7 +1308,11 @@ def build_cpython(
1308
1308
# runtime dependencies, so we are conservative and use the old version
1309
1309
# elsewhere. The old version isn't built for arm64, so we use the new
1310
1310
# version there too
1311
- tk_bin_entry = "tk-windows-bin" if meets_python_minimum_version (python_version , "3.14" ) or arch == "arm64" else "tk-windows-bin-8612"
1311
+ tk_bin_entry = (
1312
+ "tk-windows-bin"
1313
+ if meets_python_minimum_version (python_version , "3.14" ) or arch == "arm64"
1314
+ else "tk-windows-bin-8612"
1315
+ )
1312
1316
tk_bin_archive = download_entry (
1313
1317
tk_bin_entry , BUILD , local_name = "tk-windows-bin.tar.gz"
1314
1318
)
@@ -1396,7 +1400,13 @@ def build_cpython(
1396
1400
# Delete the tk nmake helper, it's not needed and links msvc
1397
1401
tcltk_commit : str = DOWNLOADS [tk_bin_entry ]["git_commit" ]
1398
1402
tcltk_path = td / ("cpython-bin-deps-%s" % tcltk_commit )
1399
- (tcltk_path / build_directory / "lib" / "nmake" / "x86_64-w64-mingw32-nmakehlp.exe" ).unlink ()
1403
+ (
1404
+ tcltk_path
1405
+ / build_directory
1406
+ / "lib"
1407
+ / "nmake"
1408
+ / "x86_64-w64-mingw32-nmakehlp.exe"
1409
+ ).unlink ()
1400
1410
1401
1411
cpython_source_path = td / ("Python-%s" % python_version )
1402
1412
pcbuild_path = cpython_source_path / "PCbuild"
0 commit comments