To create an
.egg file do next:
Create a directory, we will call it
chiken. Put your python source code (one or several python scripts) now create
setup.py file near the directory:
# setup.py from setuptools import setup, find_packages setup( name = "chiken", version = "0.1", packages = find_packages() )
Then, run in the terminal:
python setup.py bdist_egg
This will generate some outputs, but when it’s done you’ll see that you have three new folders:
The only folder that we need is the
dist where you'll find your
chiken-0.1-py3.5.egg with your default python (installation) version number (in our example: 3.5).
You can share this egg with anyone else.
To install it they can apply: