2017-10-06 89 views
4

在任何地方(PEP或其他地方)声明有关上载到PyPI的Linux轮子应该有多大范围的限制?具体来说:当我们无法建立后者时,将linux_x86_64轮子上传到PyPI而不是manylinux1_x86_64被认为是可接受的做法 - 由于外部C库取决于更新的glibc对PyPI上车轮平台约束的限制?

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.

+0

我设法创建一个'manylinux1_x86_64 '轮子,在[manylinux'项目]提供的CentOS 5.11映像中(https://github.com/py PA/manylinux)。最初的失败是由于未将'-std = c99'传递给'gcc'(通过外部C库的'./configure'脚本)。结果是一个未声明的'HUGE_VALL'(详见'math.h')。 –

回答