Skip to content

Commit a53a38b

Browse files
authored
Update to latest Python patch versions (#400)
* Update to latest Python patch versions * Add `atomic` to allowed system libraries * Allow `libatomic.so.1`
1 parent 3dbca1c commit a53a38b

File tree

3 files changed

+32
-23
lines changed

3 files changed

+32
-23
lines changed

cpython-unix/build.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,16 @@
5151
EXTENSION_MODULES = SUPPORT / "extension-modules.yml"
5252
TARGETS_CONFIG = SUPPORT / "targets.yml"
5353

54-
LINUX_ALLOW_SYSTEM_LIBRARIES = {"c", "crypt", "dl", "m", "pthread", "rt", "util"}
54+
LINUX_ALLOW_SYSTEM_LIBRARIES = {
55+
"c",
56+
"crypt",
57+
"dl",
58+
"m",
59+
"pthread",
60+
"rt",
61+
"util",
62+
"atomic",
63+
}
5564
MACOS_ALLOW_SYSTEM_LIBRARIES = {"dl", "m", "pthread"}
5665
MACOS_ALLOW_FRAMEWORKS = {"CoreFoundation"}
5766

pythonbuild/downloads.py

+20-20
Original file line numberDiff line numberDiff line change
@@ -35,46 +35,46 @@
3535
"license_file": "LICENSE.bzip2.txt",
3636
},
3737
"cpython-3.9": {
38-
"url": "https://www.python.org/ftp/python/3.9.20/Python-3.9.20.tar.xz",
39-
"size": 19648968,
40-
"sha256": "6b281279efd85294d2d6993e173983a57464c0133956fbbb5536ec9646beaf0c",
41-
"version": "3.9.20",
38+
"url": "https://www.python.org/ftp/python/3.9.21/Python-3.9.21.tar.xz",
39+
"size": 19647056,
40+
"sha256": "3126f59592c9b0d798584755f2bf7b081fa1ca35ce7a6fea980108d752a05bb1",
41+
"version": "3.9.21",
4242
"licenses": ["Python-2.0", "CNRI-Python"],
4343
"license_file": "LICENSE.cpython.txt",
4444
"python_tag": "cp39",
4545
},
4646
"cpython-3.10": {
47-
"url": "https://www.python.org/ftp/python/3.10.15/Python-3.10.15.tar.xz",
48-
"size": 19596540,
49-
"sha256": "aab0950817735172601879872d937c1e4928a57c409ae02369ec3d91dccebe79",
50-
"version": "3.10.15",
47+
"url": "https://www.python.org/ftp/python/3.10.16/Python-3.10.16.tar.xz",
48+
"size": 19610392,
49+
"sha256": "bfb249609990220491a1b92850a07135ed0831e41738cf681d63cf01b2a8fbd1",
50+
"version": "3.10.16",
5151
"licenses": ["Python-2.0", "CNRI-Python"],
5252
"license_file": "LICENSE.cpython.txt",
5353
"python_tag": "cp310",
5454
},
5555
"cpython-3.11": {
56-
"url": "https://www.python.org/ftp/python/3.11.10/Python-3.11.10.tar.xz",
57-
"size": 20067656,
58-
"sha256": "07a4356e912900e61a15cb0949a06c4a05012e213ecd6b4e84d0f67aabbee372",
59-
"version": "3.11.10",
56+
"url": "https://www.python.org/ftp/python/3.11.11/Python-3.11.11.tar.xz",
57+
"size": 20085792,
58+
"sha256": "2a9920c7a0cd236de33644ed980a13cbbc21058bfdc528febb6081575ed73be3",
59+
"version": "3.11.11",
6060
"licenses": ["Python-2.0", "CNRI-Python"],
6161
"license_file": "LICENSE.cpython.txt",
6262
"python_tag": "cp311",
6363
},
6464
"cpython-3.12": {
65-
"url": "https://www.python.org/ftp/python/3.12.7/Python-3.12.7.tar.xz",
66-
"size": 20444032,
67-
"sha256": "24887b92e2afd4a2ac602419ad4b596372f67ac9b077190f459aba390faf5550",
68-
"version": "3.12.7",
65+
"url": "https://www.python.org/ftp/python/3.12.8/Python-3.12.8.tar.xz",
66+
"size": 20489808,
67+
"sha256": "c909157bb25ec114e5869124cc2a9c4a4d4c1e957ca4ff553f1edc692101154e",
68+
"version": "3.12.8",
6969
"licenses": ["Python-2.0", "CNRI-Python"],
7070
"license_file": "LICENSE.cpython.txt",
7171
"python_tag": "cp312",
7272
},
7373
"cpython-3.13": {
74-
"url": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tar.xz",
75-
"size": 22532980,
76-
"sha256": "086de5882e3cb310d4dca48457522e2e48018ecd43da9cdf827f6a0759efb07d",
77-
"version": "3.13.0",
74+
"url": "https://www.python.org/ftp/python/3.13.1/Python-3.13.1.tar.xz",
75+
"size": 22589692,
76+
"sha256": "9cf9427bee9e2242e3877dd0f6b641c1853ca461f39d6503ce260a59c80bf0d9",
77+
"version": "3.13.1",
7878
"licenses": ["Python-2.0", "CNRI-Python"],
7979
"license_file": "LICENSE.cpython.txt",
8080
"python_tag": "cp313",

src/validation.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ const ELF_ALLOWED_LIBRARIES: &[&str] = &[
6868
"libpthread.so.0",
6969
"librt.so.1",
7070
"libutil.so.1",
71+
"libatomic.so.1",
7172
];
7273

7374
const PE_ALLOWED_LIBRARIES: &[&str] = &[
@@ -1487,8 +1488,7 @@ fn validate_extension_modules(
14871488
wanted.extend(GLOBAL_EXTENSIONS_LINUX_PRE_3_13);
14881489
}
14891490

1490-
if !is_linux_musl && matches!(python_major_minor, "3.9" | "3.10" | "3.11" | "3.12")
1491-
{
1491+
if !is_linux_musl && matches!(python_major_minor, "3.9" | "3.10" | "3.11" | "3.12") {
14921492
wanted.insert("ossaudiodev");
14931493
}
14941494
}

0 commit comments

Comments
 (0)