Python 项目打包成wheel
使用 setuptools
,python setup.py bdist_wheel
whl文件名命令规则 {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.whl
默认情况下,abi
和platform
tag 均为 none
。
import setuptools
from sys import platform
try:
from wheel.bdist_wheel import bdist_wheel as _bdsit_wheel
class bdist_wheel