Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manylinux2014 policy #192

Merged
merged 2 commits into from
Oct 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions auditwheel/policy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
_PLATFORM_REPLACEMENT_MAP = {
'manylinux1_x86_64': ['linux_x86_64'],
'manylinux2010_x86_64': ['linux_x86_64'],
'manylinux2014_x86_64': ['linux_x86_64'],
'manylinux1_i686': ['linux_i686'],
'manylinux2010_i686': ['linux_i686'],
'manylinux2014_i686': ['linux_i686'],
mayeut marked this conversation as resolved.
Show resolved Hide resolved
}


Expand Down
26 changes: 26 additions & 0 deletions auditwheel/policy/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,32 @@
"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.4.0", "4.5.0"]
},
"lib_whitelist": [
"libgcc_s.so.1",
"libstdc++.so.6",
"libm.so.6", "libdl.so.2", "librt.so.1",
"libc.so.6", "libnsl.so.1", "libutil.so.1", "libpthread.so.0",
"libX11.so.6", "libXext.so.6", "libXrender.so.1", "libICE.so.6",
"libSM.so.6", "libGL.so.1", "libgobject-2.0.so.0",
"libgthread-2.0.so.0", "libglib-2.0.so.0", "libresolv.so.2"
]},
{"name": "manylinux2014",
"priority": 80,
"symbol_versions": {
"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.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"],
"CXXABI": ["1.3", "1.3.1", "1.3.2", "1.3.3", "1.3.4", "1.3.5",
"1.3.6", "1.3.7", "TM_1"],
mayeut marked this conversation as resolved.
Show resolved Hide resolved
"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"],
"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.4.0", "4.5.0", "4.7.0", "4.8.0"]
},
"lib_whitelist": [
"libgcc_s.so.1",
"libstdc++.so.6",
Expand Down
7 changes: 6 additions & 1 deletion scripts/calculate_symbol_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ def find_library(library):


def versionify(version_string):
return [int(n) for n in version_string.split('.')]
try:
result = [int(n) for n in version_string.split('.')]
assert len(result) <= 3
except ValueError:
result = [999999, 999999, 999999, version_string]
return result


def calculate_symbol_versions(libraries, symbol_versions, arch):
Expand Down