Python模块发布
项目根目录添加setup.py模块:
from distutils.core import setup setup( name="模块名字", version="1.0.0", py_modules=['suba.aa','suba.bb','subb.cc','subb.dd'], author="作者姓名(英文)", author_email="电子邮箱地址", url="作者的个人网站或关于模块的介绍网站", description="模块的描述" )
构建模块:
python setup.py build
![](https://images2015.cnblogs.com/blog/677994/201604/677994-20160417105758926-1305794622.png)
生成发布压缩包:
python setup.py sdist
![](https://images2015.cnblogs.com/blog/677994/201604/677994-20160417105827973-2061817204.png)
模块安装:
python setup.py install