python 安装包制作

1、 __init__.py

2、模块1  模块2

3、setup.py

from distutils.core import setup
setup(name='modules_name',version='1.0',description='modules_desc',author='author',py_modules=['模块1','模块2'])

python setup.py build

python setup.py sdist

ok
posted @ 2018-07-04 21:10  破晓e  阅读(175)  评论(0编辑  收藏  举报