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