@@ -1409,6 +1409,12 @@ def build_cpython(
1409
1409
setuptools_wheel = download_entry ("setuptools" , BUILD )
1410
1410
pip_wheel = download_entry ("pip" , BUILD )
1411
1411
1412
+ # CPython 3.13+ no longer uses a bundled version by default
1413
+ if meets_python_minimum_version (python_version , "3.13" ):
1414
+ mpdecimal_archive = download_entry ("mpdecimal" , BUILD )
1415
+ else :
1416
+ mpdecimal_archive = None
1417
+
1412
1418
if arch == "amd64" :
1413
1419
build_platform = "x64"
1414
1420
build_directory = "amd64"
@@ -1426,12 +1432,16 @@ def build_cpython(
1426
1432
for a in (
1427
1433
python_archive ,
1428
1434
bzip2_archive ,
1435
+ mpdecimal_archive ,
1429
1436
openssl_archive ,
1430
1437
sqlite_archive ,
1431
1438
tk_bin_archive ,
1432
1439
xz_archive ,
1433
1440
zlib_archive ,
1434
1441
):
1442
+ if a is None :
1443
+ continue
1444
+
1435
1445
log ("extracting %s to %s" % (a , td ))
1436
1446
fs .append (e .submit (extract_tar_to_directory , a , td ))
1437
1447
@@ -1599,11 +1609,6 @@ def build_cpython(
1599
1609
if not meets_python_minimum_version (python_version , "3.12" ):
1600
1610
args .append ("--include-distutils" )
1601
1611
1602
- # CPython 3.13+ no longer uses a bundled libmpdec by default
1603
- # TODO(zanieb): We should use the system libmpdec as we do for Unix builds
1604
- if meets_python_minimum_version (python_version , "3.13" ):
1605
- args .append ("--with-system-libmpdec=no" )
1606
-
1607
1612
args .extend (["--include-idle" , "--include-stable" , "--include-tcltk" ])
1608
1613
1609
1614
exec_and_log (
0 commit comments