How do I turn a python program into an .egg file?
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.
Also, if you need to get an .egg package off a single .py file app, check this link: EasyInstall - Packaging others projects as eggs.
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
© 2022 - 2024 — McMap. All rights reserved.