python setuptools工具打包

来源:互联网 发布:微信java通用版下载 编辑:程序博客网 时间:2024/06/05 09:20

http://blog.csdn.net/five3/article/details/7847551
http://blog.csdn.net/reyoung1110/article/details/7594171

打包的源码结构

setup.py代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from setuptools import setup
 
setup(
      name='getui',
      version='0.0.1',
      #包名及子包都要写上
      packages=['google','google.protobuf','google.protobuf.compiler','google.protobuf.internal','protobuf','igetui','igetui.template'],
      author='xxxx',
      author_email='xxxx@126.com',
      license='LGPL',
      install_requires=["docutils>=0.12"],
      description="getui",
      #entry_points ={
      #  'console_scripts':[
      #      'SlideGen=slidegen.SlideGen:Main'
      #  ]
      #},
      keywords='getui',
      url='http://linjiqin@58.23.5.118:7990/scm/vnd/getui.git'
)
0 0