Skip to content

Commit ed2cd79

Browse files
ncoghlandstufft
authored andcommitted
Add a note about managing wheel ABI compatility (#3806)
There's a lot more to defining Linux ABI compatibility tags than just allowing them as PyPI uploads, so add a note to make that clear to PyPI maintainers, rather than assuming that everyone will be automatically aware of that fact.
1 parent 4dce432 commit ed2cd79

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

warehouse/forklift/legacy.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,19 @@ def namespace_stdlib_list(module_list):
7777
}
7878

7979
# Wheel platform checking
80+
81+
# Note: defining new platform ABI compatibility tags that don't
82+
# have a python.org binary release to anchor them is a
83+
# complex task that needs more than just OS+architecture info.
84+
# For Linux specifically, the platform ABI is defined by each
85+
# individual distro version, so wheels built on one version may
86+
# not even work on older versions of the same distro, let alone
87+
# a completely different distro.
88+
#
89+
# That means new entries should only be added given an
90+
# accompanying ABI spec that explains how to build a
91+
# compatible binary (see the manylinux specs as examples).
92+
8093
# These platforms can be handled by a simple static list:
8194
_allowed_platforms = {
8295
"any",

0 commit comments

Comments
 (0)