python wheel 包命名规则和 abi 兼容

wheel 包的命名规定

wheel 包的命名格式为 {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.whl 。
检测版本命令:
from pip import pep425tags
print(pep425tags.get_supported())

执行过程:

C:\Python3.\Scripts>python
Python 3.5. (v3.5.2:4def2a2901a5, Jun , ::) [MSC v. bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pip import pep425tags
>>> print(pep425tags.get_supported())
[('cp35', 'cp35m', 'win32'), ('cp35', 'none', 'win32'), ('py3', 'none', 'win32'), ('cp35', 'none', 'any'), ('cp3', 'none', 'any'), ('py35', 'none', 'any'), ('py3', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]
 
上一篇:阻塞通信之Socket编程


下一篇:Android项目包命名规则是怎样的?