Skip to content

Commit 265f92c

Browse files
committed
Add manylinux_2_24 policy
1 parent fcf58e0 commit 265f92c

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

auditwheel/policy/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ def get_replace_platforms(name: str):
8080
"""
8181
if name.startswith('linux'):
8282
return []
83+
if name.startswith('manylinux_'):
84+
return ['linux_' + '_'.join(name.split('_')[3:])]
8385
return ['linux_' + '_'.join(name.split('_')[1:])]
8486

8587

auditwheel/policy/policy.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,55 @@
101101
"GLIBCXX": ["3.4", "3.4.1", "3.4.2", "3.4.3", "3.4.4", "3.4.5", "3.4.6", "3.4.7", "3.4.8", "3.4.9", "3.4.10", "3.4.11", "3.4.12", "3.4.13", "3.4.14", "3.4.15", "3.4.16", "3.4.17", "3.4.18", "3.4.19"]
102102
}
103103
},
104+
"lib_whitelist": [
105+
"libgcc_s.so.1",
106+
"libstdc++.so.6",
107+
"libm.so.6", "libdl.so.2", "librt.so.1",
108+
"libc.so.6", "libnsl.so.1", "libutil.so.1", "libpthread.so.0",
109+
"libX11.so.6", "libXext.so.6", "libXrender.so.1", "libICE.so.6",
110+
"libSM.so.6", "libGL.so.1", "libgobject-2.0.so.0",
111+
"libgthread-2.0.so.0", "libglib-2.0.so.0", "libresolv.so.2"
112+
]},
113+
{"name": "manylinux_2_24",
114+
"priority": 70,
115+
"symbol_versions": {
116+
"i686": {
117+
"CXXABI": ["1.3", "1.3.1", "1.3.2", "1.3.3", "1.3.4", "1.3.5", "1.3.6", "1.3.7", "1.3.8", "1.3.9", "1.3.10", "FLOAT128", "TM_1"],
118+
"GCC": ["3.0", "3.3", "3.3.1", "3.4", "3.4.2", "4.0.0", "4.2.0", "4.3.0", "4.4.0", "4.5.0", "4.7.0", "4.8.0"],
119+
"GLIBC": ["2.0", "2.1", "2.1.1", "2.1.2", "2.1.3", "2.2", "2.2.1", "2.2.2", "2.2.3", "2.2.4", "2.2.6", "2.3", "2.3.2", "2.3.3", "2.3.4", "2.4", "2.5", "2.6", "2.7", "2.8", "2.9", "2.10", "2.11", "2.12", "2.13", "2.14", "2.15", "2.16", "2.17", "2.18", "2.22", "2.23", "2.24"],
120+
"GLIBCXX": ["3.4", "3.4.1", "3.4.2", "3.4.3", "3.4.4", "3.4.5", "3.4.6", "3.4.7", "3.4.8", "3.4.9", "3.4.10", "3.4.11", "3.4.12", "3.4.13", "3.4.14", "3.4.15", "3.4.16", "3.4.17", "3.4.18", "3.4.19", "3.4.20", "3.4.21", "3.4.22"]
121+
},
122+
"x86_64": {
123+
"CXXABI": ["1.3", "1.3.1", "1.3.2", "1.3.3", "1.3.4", "1.3.5", "1.3.6", "1.3.7", "1.3.8", "1.3.9", "1.3.10", "FLOAT128", "TM_1"],
124+
"GCC": ["3.0", "3.3", "3.3.1", "3.4", "3.4.2", "3.4.4", "4.0.0", "4.2.0", "4.3.0", "4.7.0", "4.8.0"],
125+
"GLIBC": ["2.2.5", "2.2.6", "2.3", "2.3.2", "2.3.3", "2.3.4", "2.4", "2.5", "2.6", "2.7", "2.8", "2.9", "2.10", "2.11", "2.12", "2.13", "2.14", "2.15", "2.16", "2.17", "2.18", "2.22", "2.23", "2.24"],
126+
"GLIBCXX": ["3.4", "3.4.1", "3.4.2", "3.4.3", "3.4.4", "3.4.5", "3.4.6", "3.4.7", "3.4.8", "3.4.9", "3.4.10", "3.4.11", "3.4.12", "3.4.13", "3.4.14", "3.4.15", "3.4.16", "3.4.17", "3.4.18", "3.4.19", "3.4.20", "3.4.21", "3.4.22"]
127+
},
128+
"aarch64": {
129+
"CXXABI": ["1.3", "1.3.1", "1.3.2", "1.3.3", "1.3.4", "1.3.5", "1.3.6", "1.3.7", "1.3.8", "1.3.9", "1.3.10", "TM_1"],
130+
"GCC": ["3.0", "3.3", "3.3.1", "3.4", "3.4.2", "3.4.4", "4.0.0", "4.2.0", "4.3.0", "4.5.0", "4.7.0"],
131+
"GLIBC": ["2.0", "2.17", "2.18", "2.22", "2.23", "2.24"],
132+
"GLIBCXX": ["3.4", "3.4.1", "3.4.2", "3.4.3", "3.4.4", "3.4.5", "3.4.6", "3.4.7", "3.4.8", "3.4.9", "3.4.10", "3.4.11", "3.4.12", "3.4.13", "3.4.14", "3.4.15", "3.4.16", "3.4.17", "3.4.18", "3.4.19", "3.4.20", "3.4.21", "3.4.22"]
133+
},
134+
"ppc64le": {
135+
"CXXABI": ["1.3", "1.3.1", "1.3.2", "1.3.3", "1.3.4", "1.3.5", "1.3.6", "1.3.7", "1.3.8", "1.3.9", "1.3.10", "LDBL_1.3", "TM_1"],
136+
"GCC": ["3.0", "3.3", "3.3.1", "3.4", "3.4.2", "3.4.4", "4.0.0", "4.2.0", "4.3.0", "4.7.0"],
137+
"GLIBC": ["2.0", "2.17", "2.18", "2.22", "2.23", "2.24"],
138+
"GLIBCXX": ["3.4", "3.4.1", "3.4.2", "3.4.3", "3.4.4", "3.4.5", "3.4.6", "3.4.7", "3.4.8", "3.4.9", "3.4.10", "3.4.11", "3.4.12", "3.4.13", "3.4.14", "3.4.15", "3.4.16", "3.4.17", "3.4.18", "3.4.19", "3.4.20", "3.4.21", "3.4.22", "LDBL_3.4", "LDBL_3.4.10", "LDBL_3.4.21", "LDBL_3.4.7"]
139+
},
140+
"s390x": {
141+
"CXXABI": ["1.3", "1.3.1", "1.3.2", "1.3.3", "1.3.4", "1.3.5", "1.3.6", "1.3.7", "1.3.8", "1.3.9", "1.3.10", "LDBL_1.3", "TM_1"],
142+
"GCC": ["3.0", "3.3", "3.3.1", "3.4", "3.4.2", "3.4.4", "4.0.0", "4.1.0", "4.2.0", "4.3.0", "4.7.0"],
143+
"GLIBC": ["2.2", "2.2.1", "2.2.2", "2.2.3", "2.2.4", "2.2.6", "2.3", "2.3.2", "2.3.3", "2.3.4", "2.4", "2.5", "2.6", "2.7", "2.8", "2.9", "2.10", "2.11", "2.12", "2.13", "2.14", "2.15", "2.16", "2.17", "2.18", "2.19", "2.22", "2.23", "2.24"],
144+
"GLIBCXX": ["3.4", "3.4.1", "3.4.2", "3.4.3", "3.4.4", "3.4.5", "3.4.6", "3.4.7", "3.4.8", "3.4.9", "3.4.10", "3.4.11", "3.4.12", "3.4.13", "3.4.14", "3.4.15", "3.4.16", "3.4.17", "3.4.18", "3.4.19", "3.4.20", "3.4.21", "3.4.22", "LDBL_3.4", "LDBL_3.4.10", "LDBL_3.4.21", "LDBL_3.4.7"]
145+
},
146+
"armv7l": {
147+
"CXXABI": ["1.3", "1.3.1", "1.3.2", "1.3.3", "1.3.4", "1.3.5", "1.3.6", "1.3.7", "1.3.8", "1.3.9", "1.3.10", "ARM_1.3.3", "TM_1"],
148+
"GCC": ["3.0", "3.3", "3.3.1", "3.3.4", "3.4", "3.4.2", "3.5", "4.0.0", "4.2.0", "4.3.0", "4.7.0"],
149+
"GLIBC": ["2.0", "2.4", "2.5", "2.6", "2.7", "2.8", "2.9", "2.10", "2.11", "2.12", "2.13", "2.14", "2.15", "2.16", "2.17", "2.18", "2.22", "2.23", "2.24"],
150+
"GLIBCXX": ["3.4", "3.4.1", "3.4.2", "3.4.3", "3.4.4", "3.4.5", "3.4.6", "3.4.7", "3.4.8", "3.4.9", "3.4.10", "3.4.11", "3.4.12", "3.4.13", "3.4.14", "3.4.15", "3.4.16", "3.4.17", "3.4.18", "3.4.19", "3.4.20", "3.4.21", "3.4.22"]
151+
}
152+
},
104153
"lib_whitelist": [
105154
"libgcc_s.so.1",
106155
"libstdc++.so.6",

tests/unit/test_policy.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def test_64bits_arch_name(machine_mock, reported_arch, expected_arch):
3737
("linux_aarch64", []),
3838
("manylinux1_ppc64le", ["linux_ppc64le"]),
3939
("manylinux2014_x86_64", ["linux_x86_64"]),
40+
("manylinux_2_24_x86_64", ["linux_x86_64"]),
4041
])
4142
def test_replacement_platform(name, expected):
4243
assert get_replace_platforms(name) == expected
@@ -46,6 +47,7 @@ class TestPolicyAccess:
4647

4748
def test_get_by_priority(self):
4849
_arch = get_arch_name()
50+
assert get_policy_name(70) == f'manylinux_2_24_{_arch}'
4951
assert get_policy_name(80) == f'manylinux2014_{_arch}'
5052
if _arch in {'x86_64', 'i686'}:
5153
assert get_policy_name(90) == f'manylinux2010_{_arch}'
@@ -65,6 +67,7 @@ def test_get_by_priority_duplicate(self):
6567

6668
def test_get_by_name(self):
6769
_arch = get_arch_name()
70+
assert get_priority_by_name(f"manylinux_2_24_{_arch}") == 70
6871
assert get_priority_by_name(f"manylinux2014_{_arch}") == 80
6972
if _arch in {'x86_64', 'i686'}:
7073
assert get_priority_by_name(f"manylinux2010_{_arch}") == 90

0 commit comments

Comments
 (0)