- 添加setup.py(任何目录都可以)
- 编辑setup.py
from distutils.core import setup
setup(name="模块名字", version="1.0", description="模块名称", author="dongGe", py_modules=['文件路径', 'suba.bb'])
- 构建模块
python setup.py build
- 生成压缩包
python setup.py sdist
from distutils.core import setup
setup(name="模块名字", version="1.0", description="模块名称", author="dongGe", py_modules=['文件路径', 'suba.bb'])
python setup.py build
python setup.py sdist