Install and create egg files in Ubuntu

Source: Internet
Author: User
Download and run ez_setup.py. Alternatively, you can directly download and install the easy_installegg file: Haha. You can use easy_installxxx.egg to hatch egg. To create an egg file, edit setup in the package folder. py file, example. pyfromsetuptoolsimportsetup, find_packagessetup (

Download and execute: ez_setup.py, or directly download and install easy_install

Egg file: Haha, you can use easy_install xxx. egg to hatch your eggs.

To create an egg file, edit the setup. py file, example. py

From setuptools import setup, find_packages

Setup (
Name = 'eggtest ',
Version = '0. 1 ',
Packages = find_packages (),

Description = 'egg demo ',
Long_description = 'egg demo description ',
Author = 'one ',
Author_email = 'one @ gmail.com ',

License = 'bsd ',
Keywords = ('test', 'egg '),
Platforms = 'dependant ',
Url = 'HTTP: // xxxxxx. xxx. XXX'
)

Run python setup. py bdist_egg. The egg file is generated in the dist directory of the current directory.

Other file formats:

Python setup. py build # compile

Python setup. py sdist # zip

Python setup. py bdist_wininst # exe

Python setup. py bdist_rpm # rpm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.