Python-setup进阶打包命令
Python-setup进阶打包命令_python setup-CSDN博客
- packages 需要处理的包目录(包含__init__.py的文件夹),这里通常使用 find_packages(),它默认在和setup.py同一目录下搜索各个含有 init.py的包。
setup.py打包命令各参数详解:
>> python setup.py --help-commands
--python setup.py build # 仅编译不安装
--python setup.py install #安装到python安装目录的lib下
--python setup.py sdist #生成压缩包(zip/tar.gz)
--python setup.py bdist #生成平台安装包
--python setup.py bdist_wininst #生成NT平台安装包(.exe)
--python setup.py bdist_rpm #生成rpm包
--python setup.py bdist_wheel 生成wheel包
--python setup.py egg_info # 单独生成egg_info信息