python wheel 包命名规则和abi 兼容
wheel包命名规则:
Python代码 wheel 包的命名格式为 {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.whl 。 wheel 包的命名格式为 {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.whl 。
查看兼容的包名规则
Python代码 from pip import pep425tags print(pep425tags.get_supported()) from pip import pep425tags
print(pep425tags.get_supported())
执行结果如下:
Python代码 >>> from pip import pep425tags >>> print(pep425tags.get_supported()) [('cp27', 'cp27m', 'win_amd64'), ('cp27', 'none', 'win_amd64'), ('py2', 'none', 'win_amd64'), ('cp27', 'none', 'any'), ('cp2', 'none', 'any'), ('py27', 'none', 'any'), ('py2', 'none', 'any'), ('py26', 'none', 'any'), ('py25', 'none', 'any') , ('py24', 'none', 'any'), ('py23', 'none', 'any'), ('py22', 'none', 'any'), ('p y21', 'none', 'any'), ('py20', 'none', 'any')] >>> from pip import pep425tags
>>> print(pep425tags.get_supported())
[('cp27', 'cp27m', 'win_amd64'), ('cp27', 'none', 'win_amd64'), ('py2', 'none',
'win_amd64'), ('cp27', 'none', 'any'), ('cp2', 'none', 'any'), ('py27', 'none',
'any'), ('py2', 'none', 'any'), ('py26', 'none', 'any'), ('py25', 'none', 'any')
, ('py24', 'none', 'any'), ('py23', 'none', 'any'), ('py22', 'none', 'any'), ('p
y21', 'none', 'any'), ('py20', 'none', 'any')]
原文章浏览量:2094
原文章分类:编程语言
原文链接:https://www.iteye.com/blog/lizhiyu-2384085