1
1
const Version = enum {
2
- @"3.11.4 " ,
2
+ @"3.11.13 " ,
3
3
@"3.12.11" ,
4
4
pub fn libName (self : Version ) []const u8 {
5
5
return switch (self ) {
6
- .@"3.11.4 " = > "3.11" ,
6
+ .@"3.11.13 " = > "3.11" ,
7
7
.@"3.12.11" = > "3.12" ,
8
8
};
9
9
}
@@ -59,7 +59,7 @@ pub fn build(b: *std.Build) !void {
59
59
});
60
60
61
61
const upstream : * std.Build.Dependency = switch (version ) {
62
- .@"3.11.4 " = > if (b .lazyDependency ("upstream_3.11.4 " , .{})) | d | d else noUpstream (b ),
62
+ .@"3.11.13 " = > if (b .lazyDependency ("upstream_3.11.13 " , .{})) | d | d else noUpstream (b ),
63
63
.@"3.12.11" = > if (b .lazyDependency ("upstream_3.12.11" , .{})) | d | d else noUpstream (b ),
64
64
};
65
65
@@ -155,7 +155,7 @@ pub fn build(b: *std.Build) !void {
155
155
const run = std .Build .Step .Run .create (b , "run deepfreeze.py" );
156
156
run .addFileArg (bootstrap_packaged .exe );
157
157
run .addFileArg (upstream .path (switch (version ) {
158
- .@"3.11.4 " = > "Tools/scripts/deepfreeze.py" ,
158
+ .@"3.11.13 " = > "Tools/scripts/deepfreeze.py" ,
159
159
else = > "Tools/build/deepfreeze.py" ,
160
160
}));
161
161
run .addArg ("-o" );
@@ -336,7 +336,7 @@ fn addMakesetup(
336
336
.xxlimited_35 = false ,
337
337
._xxsubinterpreters = false ,
338
338
};
339
- const @"stdlib_modules_3.11.4 " = .{
339
+ const @"stdlib_modules_3.11.13 " = .{
340
340
._typing = true ,
341
341
._sha256 = true ,
342
342
._sha512 = true ,
@@ -366,7 +366,7 @@ fn addMakesetup(
366
366
replace .addArg ("MODULE_BUILDTYPE=static" );
367
367
addReplaceModuleArgs (b , replace , @TypeOf (stdlib_modules_common ), stdlib_modules_common );
368
368
switch (version ) {
369
- .@"3.11.4 " = > addReplaceModuleArgs (b , replace , @TypeOf (@"stdlib_modules_3.11.4 " ), @"stdlib_modules_3.11.4 " ),
369
+ .@"3.11.13 " = > addReplaceModuleArgs (b , replace , @TypeOf (@"stdlib_modules_3.11.13 " ), @"stdlib_modules_3.11.13 " ),
370
370
.@"3.12.11" = > {
371
371
replace .addArg ("MODULE__CTYPES_MALLOC_CLOSURE=" );
372
372
addReplaceModuleArgs (b , replace , @TypeOf (@"stdlib_modules_3.12.11" ), @"stdlib_modules_3.12.11" );
@@ -436,7 +436,7 @@ fn addPythonExe(
436
436
});
437
437
438
438
switch (args .pyconfig .version ) {
439
- .@"3.11.4 " = > {
439
+ .@"3.11.13 " = > {
440
440
// workaround dictobject.c memcpy alignment issue
441
441
exe .root_module .sanitize_c = false ;
442
442
},
@@ -449,7 +449,7 @@ fn addPythonExe(
449
449
.Debug = > {},
450
450
.ReleaseSafe , .ReleaseSmall , .ReleaseFast = > {
451
451
const release_date = switch (args .pyconfig .version ) {
452
- .@"3.11.4 " = > "June 6, 2023 " ,
452
+ .@"3.11.13 " = > "June 3, 2025 " ,
453
453
.@"3.12.11" = > "June 3, 2025" ,
454
454
};
455
455
// need to redefine __DATE__ and __TIME__ for a reproducible build
@@ -480,7 +480,7 @@ fn addPythonExe(
480
480
switch (args .stage ) {
481
481
.freeze_module , .bootstrap = > {},
482
482
.final = > | final | switch (args .pyconfig .version ) {
483
- .@"3.11.4 " = > {},
483
+ .@"3.11.13 " = > {},
484
484
else = > for (final .frozen_headers ) | h | {
485
485
exe .addIncludePath (h .dirname ().dirname ());
486
486
},
@@ -566,7 +566,7 @@ fn addPythonExe(
566
566
"Modules/getpath_noop.c" ,
567
567
},
568
568
switch (args .pyconfig .version ) {
569
- .@"3.11.4 " = > & library_src_omit_frozen .@"3.11.4 " ,
569
+ .@"3.11.13 " = > & library_src_omit_frozen .@"3.11.13 " ,
570
570
.@"3.12.11" = > & library_src_omit_frozen .@"3.12.11" ,
571
571
},
572
572
}),
@@ -576,7 +576,7 @@ fn addPythonExe(
576
576
"Modules/getbuildinfo.c" ,
577
577
},
578
578
switch (args .pyconfig .version ) {
579
- .@"3.11.4 " = > & library_src_omit_frozen .@"3.11.4 " ,
579
+ .@"3.11.13 " = > & library_src_omit_frozen .@"3.11.13 " ,
580
580
.@"3.12.11" = > & library_src_omit_frozen .@"3.12.11" ,
581
581
},
582
582
}),
@@ -587,7 +587,7 @@ fn addPythonExe(
587
587
"Python/frozen.c" ,
588
588
},
589
589
switch (args .pyconfig .version ) {
590
- .@"3.11.4 " = > & library_src_omit_frozen .@"3.11.4 " ,
590
+ .@"3.11.13 " = > & library_src_omit_frozen .@"3.11.13 " ,
591
591
.@"3.12.11" = > & library_src_omit_frozen .@"3.12.11" ,
592
592
},
593
593
}),
@@ -689,6 +689,7 @@ const header_config_set = struct {
689
689
.{ .HAVE_LANGINFO_H , "langinfo.h" },
690
690
.{ .HAVE_LIBINTL_H , "libintl.h" },
691
691
.{ .HAVE_LIBUTIL_H , "libutil.h" },
692
+ .{ .HAVE_LINUX_LIMITS_H , "linux/limits.h" },
692
693
.{ .HAVE_NETDB_H , "netdb.h" },
693
694
.{ .HAVE_NETINET_IN_H , "netinet/in.h" },
694
695
.{ .HAVE_NETPACKET_PACKET_H , "netpacket/packet.h" },
@@ -767,13 +768,12 @@ const header_config_set = struct {
767
768
.{ .HAVE_UUID_UUID_H , "uuid/uuid.h" },
768
769
.{ .HAVE_ZLIB_H , "zlib.h" },
769
770
};
770
- pub const @"3.11.4 " = concatConfigs (common , .{
771
+ pub const @"3.11.13 " = concatConfigs (common , .{
771
772
.{ .HAVE_MEMORY_H , "memory.h" },
772
773
});
773
774
pub const @"3.12.11" = concatConfigs (common , .{
774
775
.{ .HAVE_EDITLINE_READLINE_H , "editline/readline.h" },
775
776
.{ .HAVE_LINUX_FS_H , "linux/fs.h" },
776
- .{ .HAVE_LINUX_LIMITS_H , "linux/limits.h" },
777
777
.{ .HAVE_MINIX_CONFIG_H , "minix/config.h" },
778
778
.{ .HAVE_NET_ETHERNET_H , "net/ethernet.h" },
779
779
.{ .HAVE_PANEL_H , "panel.h" },
@@ -1202,7 +1202,7 @@ const exe_config_set = struct {
1202
1202
.{ .HAVE_WORKING_TZSET , "#include <time.h>\n int main(){tzset(); return 0;}" },
1203
1203
.{ .HAVE_ZLIB_COPY , "#include <zlib.h>\n int main(){z_stream strm; inflateCopy(&strm, &strm); return 0;}" },
1204
1204
};
1205
- pub const @"3.11.4 " = concatConfigs (common , .{
1205
+ pub const @"3.11.13 " = concatConfigs (common , .{
1206
1206
.{ .HAVE_TTYNAME , "#include <unistd.h>\n int main(){ttyname(0);}" },
1207
1207
.{ .HAVE_LIBGDBM_COMPAT , "#include <gdbm.h>\n int main(){GDBM_FILE gf; return 0;}" },
1208
1208
.{ .HAVE_LIBNDBM , "#include <ndbm.h>\n int main(){DBM *db; return 0;}" },
@@ -1314,6 +1314,7 @@ fn addPyconfig(
1314
1314
.Py_ENABLE_SHARED = null ,
1315
1315
.Py_HASH_ALGORITHM = null ,
1316
1316
.Py_STATS = null ,
1317
+ .Py_SUNOS_VERSION = null ,
1317
1318
.Py_TRACE_REFS = null ,
1318
1319
.SETPGRP_HAVE_ARG = null ,
1319
1320
.SIGNED_RIGHT_SHIFT_ZERO_FILLS = null ,
@@ -1364,9 +1365,11 @@ fn addPyconfig(
1364
1365
.HAVE_USABLE_WCHAR_T = null ,
1365
1366
.HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION = null ,
1366
1367
.HAVE_CHROOT = have (t .os .tag == .linux ),
1368
+ // Readline type (static configuration, not function test)
1369
+ .HAVE_RL_COMPDISP_FUNC_T = null ,
1367
1370
});
1368
1371
switch (version ) {
1369
- .@"3.11.4 " = > config_header .addValues (.{
1372
+ .@"3.11.13 " = > config_header .addValues (.{
1370
1373
.PY_FORMAT_SIZE_T = "z" ,
1371
1374
.TIME_WITH_SYS_TIME = 1 ,
1372
1375
.FLOAT_WORDS_BIGENDIAN = null ,
@@ -1381,14 +1384,9 @@ fn addPyconfig(
1381
1384
// ncurses library (static configuration, not function test)
1382
1385
.HAVE_NCURSESW = null ,
1383
1386
1384
- // Readline type (static configuration, not function test)
1385
- .HAVE_RL_COMPDISP_FUNC_T = null ,
1386
-
1387
1387
// Performance trampoline feature
1388
1388
.PY_HAVE_PERF_TRAMPOLINE = null ,
1389
1389
1390
- // Platform-specific version defines
1391
- .Py_SUNOS_VERSION = null ,
1392
1390
._HPUX_ALT_XOPEN_SOCKET_API = null ,
1393
1391
._OPENBSD_SOURCE = null ,
1394
1392
@@ -1404,11 +1402,11 @@ fn addPyconfig(
1404
1402
}
1405
1403
1406
1404
const header_configs : []const Config = switch (version ) {
1407
- .@"3.11.4 " = > & header_config_set .@"3.11.4 " ,
1405
+ .@"3.11.13 " = > & header_config_set .@"3.11.13 " ,
1408
1406
.@"3.12.11" = > & header_config_set .@"3.12.11" ,
1409
1407
};
1410
1408
const exe_configs : []const Config = switch (version ) {
1411
- .@"3.11.4 " = > & exe_config_set .@"3.11.4 " ,
1409
+ .@"3.11.13 " = > & exe_config_set .@"3.11.13 " ,
1412
1410
.@"3.12.11" = > & exe_config_set .@"3.12.11" ,
1413
1411
};
1414
1412
@@ -1548,7 +1546,7 @@ const python_src = struct {
1548
1546
"Python/fileutils.c" ,
1549
1547
"Python/suggestions.c" ,
1550
1548
};
1551
- pub const @"3.11.4 " = common ;
1549
+ pub const @"3.11.13 " = common ;
1552
1550
pub const @"3.12.11" = common ++ .{
1553
1551
"Python/assemble.c" ,
1554
1552
"Python/flowgraph.c" ,
@@ -1607,7 +1605,7 @@ const object_src = struct {
1607
1605
"Objects/unionobject.c" ,
1608
1606
"Objects/weakrefobject.c" ,
1609
1607
};
1610
- pub const @"3.11.4 " = common ++ .{
1608
+ pub const @"3.11.13 " = common ++ .{
1611
1609
"Objects/accu.c" ,
1612
1610
};
1613
1611
pub const @"3.12.11" = common ++ .{
@@ -1638,7 +1636,7 @@ const module_src = [_][]const u8{
1638
1636
};
1639
1637
1640
1638
const library_src_omit_frozen = struct {
1641
- pub const @"3.11.4 " = parser_src ++ object_src .@"3.11.4 " ++ python_src .@"3.11.4 " ++ module_src ;
1639
+ pub const @"3.11.13 " = parser_src ++ object_src .@"3.11.13 " ++ python_src .@"3.11.13 " ++ module_src ;
1642
1640
pub const @"3.12.11" = parser_src ++ object_src .@"3.12.11" ++ python_src .@"3.12.11" ++ module_src ;
1643
1641
};
1644
1642
@@ -1670,7 +1668,7 @@ const frozen_modules = [_][]const u8{
1670
1668
1671
1669
fn frozenModuleNames (version : Version ) * const [frozen_modules .len ][]const u8 {
1672
1670
return switch (version ) {
1673
- .@"3.11.4 " = > & frozen_module_name_sets .@"3.11" ,
1671
+ .@"3.11.13 " = > & frozen_module_name_sets .@"3.11" ,
1674
1672
else = > & frozen_module_name_sets .@"after_3.11" ,
1675
1673
};
1676
1674
}
0 commit comments