码迷,mamicode.com
首页 > 编程语言 > 详细

python 安装包制作

时间:2018-07-04 21:35:31      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:import   uil   port   安装   sdi   utils   from   script   modules   

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

python 安装包制作

标签:import   uil   port   安装   sdi   utils   from   script   modules   

原文地址:https://www.cnblogs.com/pxfb/p/9265345.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!