模块的导出,导入
__file__查找模块路径
发布模块
1.在包路径新建
setup.py
2.在文件写入
from distutils.core import setup
setup(name="dongGew",version="1.0",description="dongGeg's module ",outhor="dongGe",py_modules=['suba.aa','包名.模块名'])
3. python3 setup.py build #构建
4. python3 setup.py sdist # 压缩.tat.gz
安装
tar -zxvf 文件名
python3 setup.py install
目录 返回
首页