Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I turn a python program into an .egg file?

How do I turn a python program into an .egg file?

like image 550
minty Avatar asked Sep 08 '08 04:09

minty


People also ask

What is a Python .EGG file?

The . egg file is a distribution format for Python packages. It's just an alternative to a source code distribution or Windows exe . But note that for pure Python , the . egg file is completely cross-platform.


2 Answers

Setuptools is the software that creates .egg files. It's an extension of the distutils package in the standard library.

The process involves creating a setup.py file, then python setup.py bdist_egg creates an .egg package.

like image 190
dF. Avatar answered Oct 04 '22 16:10

dF.


Also, if you need to get an .egg package off a single .py file app, check this link: EasyInstall - Packaging others projects as eggs.

like image 26
kender Avatar answered Oct 04 '22 16:10

kender