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

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

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

是否有任何限制声明(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

总结

以上是内存溢出为你收集整理的python – 对PyPI轮子的平台约束有什么限制?全部内容,希望文章能够帮你解决python – 对PyPI轮子的平台约束有什么限制?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/1206059.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-04
下一篇 2022-06-04

发表评论

登录后才能评论

评论列表(0条)

保存