Any restrictions on platform limitations for wheels on PyPI?

Are there any restrictions announced anywhere (by PEP or elsewhere) about how wide the area onto which Linux disks are loaded on PyPI ? In particular: is it acceptable practice to load wheels linux_x86_64in PyPI instead manylinux1_x86_64, when we cannot build the latter - because of external C libraries that depend on the new glibc?

See also PEP 513 / Rationale :

Building tools using PEP 425 platform tags [3] does not track information about specific Linux distributions or installed system libraries and instead assigns all wheels too undefined linux_i686 or linux_x86_64 tags. Because of this ambiguity, there is no expectation that embedded linux-tagged distributions compiled on one machine will work properly on another, and for this reason PyPI did not allow Linux wheels to be loaded.

and "PyPI Support":

PyPI should allow loading disks containing the platform tag manylinux1. PyPI should not attempt to officially verify that wheels containing the manylinux1 platform label adhere to the manylinux1 policy described in this document. These audit tasks should be left to other tools, such as auditwheel, which are developed separately.

+4
source share
1 answer

Well, trying to download at https://test.pypi.org says:

HTTPError Error: 400: The binary wheel "foo-cp35-cp35m-linux_x86_64.whl" has an unsupported platform tag "linux_x86_64". for url: https://test.pypi.org/legacy/

+2
source

Source: https://habr.com/ru/post/1687002/


All Articles