@@ -357,6 +357,7 @@ def hack_props(
357
357
sqlite_version = DOWNLOADS ["sqlite" ]["version" ]
358
358
xz_version = DOWNLOADS ["xz" ]["version" ]
359
359
zlib_version = DOWNLOADS [zlib_entry ]["version" ]
360
+ zstd_version = DOWNLOADS ["zstd" ]["version" ]
360
361
361
362
mpdecimal_version = DOWNLOADS ["mpdecimal" ]["version" ]
362
363
@@ -372,6 +373,7 @@ def hack_props(
372
373
xz_path = td / ("xz-%s" % xz_version )
373
374
zlib_prefix = "cpython-source-deps-" if zlib_entry == "zlib-ng" else ""
374
375
zlib_path = td / ("%s%s-%s" % (zlib_prefix , zlib_entry , zlib_version ))
376
+ zstd_path = td / ("cpython-source-deps-zstd-%s" % zstd_version )
375
377
mpdecimal_path = td / ("mpdecimal-%s" % mpdecimal_version )
376
378
377
379
openssl_root = td / "openssl" / arch
@@ -416,6 +418,9 @@ def hack_props(
416
418
elif b"<zlibNgDir" in line :
417
419
line = b"<zlibNgDir>%s\\ </zlibNgDir>" % zlib_path
418
420
421
+ elif b"<zstdDir" in line :
422
+ line = b"<zstdDir>%s\\ </zstdDir>" % zstd_path
423
+
419
424
elif b"<mpdecimalDir" in line :
420
425
line = b"<mpdecimalDir>%s\\ </mpdecimalDir>" % mpdecimal_path
421
426
@@ -1255,6 +1260,12 @@ def build_cpython(
1255
1260
"tk-windows-bin-8612" , BUILD , local_name = "tk-windows-bin.tar.gz"
1256
1261
)
1257
1262
1263
+ # On CPython 3.14+, zstd is included
1264
+ if meets_python_minimum_version (python_version , "3.14" ):
1265
+ zstd_archive = download_entry ("zstd" , BUILD )
1266
+ else :
1267
+ zstd_archive = None
1268
+
1258
1269
# CPython 3.13+ no longer uses a bundled `mpdecimal` version so we build it
1259
1270
if meets_python_minimum_version (python_version , "3.13" ):
1260
1271
mpdecimal_archive = download_entry ("mpdecimal" , BUILD )
@@ -1297,6 +1308,7 @@ def build_cpython(
1297
1308
tk_bin_archive ,
1298
1309
xz_archive ,
1299
1310
zlib_archive ,
1311
+ zstd_archive ,
1300
1312
):
1301
1313
if a is None :
1302
1314
continue
0 commit comments