PyPI 上轮子的平台约束有任何限制吗?
Any limitations on platform constraints for wheels on PyPI?
是否在任何地方(PEP 或其他地方)声明了关于 Linux 轮子上传到 PyPI should have? Specifically: is it considered acceptable practice to upload linux_x86_64
wheels to PyPI, instead of manylinux1_x86_64
, when we are unable to build the latter - due to external C libraries that depend on a newer glibc
的范围有多大的限制?
Build tools using PEP 425 platform tags [3] do not track information about the particular Linux distribution or installed system libraries, and instead assign all wheels the too-vague linux_i686 or linux_x86_64 tags. Because of this ambiguity, there is no expectation that linux-tagged built distributions compiled on one machine will work properly on another, and for this reason, PyPI has not permitted the uploading of wheels for Linux.
和"PyPI Support":
PyPI should permit wheels containing the manylinux1 platform tag to be uploaded. PyPI should not attempt to formally verify that wheels containing the manylinux1 platform tag adhere to the manylinux1 policy described in this document. This verification tasks should be left to other tools, like auditwheel, that are developed separately.
好吧,正在尝试上传到 https://test.pypi.org 说:
HTTPError: 400 Client Error: Binary wheel 'foo-cp35-cp35m-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'. for url: https://test.pypi.org/legacy/
是否在任何地方(PEP 或其他地方)声明了关于 Linux 轮子上传到 PyPI should have? Specifically: is it considered acceptable practice to upload linux_x86_64
wheels to PyPI, instead of manylinux1_x86_64
, when we are unable to build the latter - due to external C libraries that depend on a newer glibc
的范围有多大的限制?
Build tools using PEP 425 platform tags [3] do not track information about the particular Linux distribution or installed system libraries, and instead assign all wheels the too-vague linux_i686 or linux_x86_64 tags. Because of this ambiguity, there is no expectation that linux-tagged built distributions compiled on one machine will work properly on another, and for this reason, PyPI has not permitted the uploading of wheels for Linux.
和"PyPI Support":
PyPI should permit wheels containing the manylinux1 platform tag to be uploaded. PyPI should not attempt to formally verify that wheels containing the manylinux1 platform tag adhere to the manylinux1 policy described in this document. This verification tasks should be left to other tools, like auditwheel, that are developed separately.
好吧,正在尝试上传到 https://test.pypi.org 说:
HTTPError: 400 Client Error: Binary wheel 'foo-cp35-cp35m-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'. for url: https://test.pypi.org/legacy/