egg文件安裝

easy_install xxxx.egg孵蛋啊
python

若是想要製做egg文件,須要在要打包的文件夾下編輯setup.py文件,example.pyui


from setuptools import setup, find_packagesurl


setup(orm

    name = 'eggtest',ip

    version = '0.1',io

    packages = find_packages(),編譯


    description = 'egg demo',form

    long_description = 'egg demo description',test

    author = 'one',email

    author_email = 'one@gmail.com',


    license = 'BSD',

    keywords = ('test', 'egg'),

    platforms = 'independant',

    url = 'http://xxxxxx.xxx.xxx'

)


執行python setup.py bdist_egg,當前目錄下dist目錄下會生成egg文件。


其餘文件格式:


python setup.py build  #編譯


python setup.py sdist  #zip


python setup.py bdist_wininst # exe


python setup.py bdist_rpm # rpm

相關文章
相關標籤/搜索