gpt4 book ai didi

python - PyPI 上轮子的平台约束有任何限制吗?

转载 作者:IT王子 更新时间:2023-10-29 00:31:33 25 4
gpt4 key购买 nike

是否有关于 Linux wheel 上传到 PyPI 的范围的任何限制声明(PEP 或其他地方)?应该有?具体来说:将 linux_x86_64 轮子而不是 manylinux1_x86_64 上传到 PyPI 是否被认为是可接受的做法? ,当我们无法构建后者时 - 由于外部 C 库依赖于较新的 glibc

另见 PEP 513 / "Rationale" :

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 支持”:

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/

关于python - PyPI 上轮子的平台约束有任何限制吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46599004/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com