加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

python – 对PyPI轮子的平台约束有什么限制?

发布时间:2020-12-16 22:33:11 所属栏目:Python 来源:网络整理
导读:是否有任何限制声明(PEP或其他地方)Linux车轮上传到PyPI的范围应该有多大?具体来说:当我们无法构建后者时,将linux_x86_64轮子上传到PyPI而不是 manylinux1_x86_64 是否被认为是可接受的做法 由于外部C库依赖于较新的 glibc ? 另见PEP 513 / Rationale: B

是否有任何限制声明(PEP或其他地方)Linux车轮上传到PyPI的范围应该有多大?具体来说:当我们无法构建后者时,将linux_x86_64轮子上传到PyPI而不是manylinux1_x86_64是否被认为是可接受的做法 – 由于外部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: 07001

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读