1.检查
python setup.py check
2.打包
python setup.py sdist bdist_wheel || true
执行完上述命令的结果:
![]()
cd dist
![]()
安装 whl包 或 tar.gz包
pip install extension-0.07-py3-none-any.whl
本文详细介绍使用Python的setup.py进行软件包检查、打包及安装的过程。包括如何通过python setup.py check验证代码,如何利用python setup.py sdist bdist_wheel打包生成源码包和whl包,以及如何用pip install安装生成的whl或tar.gz包。
1.检查
python setup.py check
2.打包
python setup.py sdist bdist_wheel || true
执行完上述命令的结果:
![]()
cd dist
![]()
安装 whl包 或 tar.gz包
pip install extension-0.07-py3-none-any.whl
2503
1万+

被折叠的 条评论
为什么被折叠?