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

3

21

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

Meadors answered 8/9, 2008 at 4:21 Comment(0)
P
15

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.

Psoas answered 8/9, 2008 at 4:33 Comment(0)
G
4

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

Gnosticism answered 8/9, 2008 at 4:47 Comment(0)
R
0

Python has its own package for creating distributions that is called distutils. However instead of using Python’s distutils’ setup function, we’re using setuptools’ setup. We’re also using setuptools’ find_packages function which will automatically look for any packages in the current directory and add them to the egg. To create said egg, you’ll need to run the following from the command line:

c:\Python34\python.exe setup.py bdist_egg
Refugee answered 23/4, 2020 at 14:44 Comment(1)
this will only work on windows. Possibly only in certain environments even then. Could you include some explanation on what is required in setup.py?Pretended

© 2022 - 2024 — McMap. All rights reserved.