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

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

Asked by: Richard322 | Posted: 24-09-2021

Answer 1

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 file, then python bdist_egg creates an .egg package.

Answered by: Byron923 | Posted: 25-10-2021

Answer 2

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

Answered by: Walter342 | Posted: 25-10-2021

Answer 3

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 bdist_egg

Answered by: Richard702 | Posted: 25-10-2021

Similar questions

deployment - Why won't you switch to Python 3.x?

deployment - Problem deploying Python program (packaged with py2exe)

I have a problem: I used py2exe for my program, and it worked on my computer. I packaged it with Inno Setup (still worked on my computer), but when I sent it to a different computer, I got the following error when trying to run the application: "CreateProcess failed; code 14001." The app won't run. (Note: I am using wxPython and the multiprocessing module in my program.) I googled for it a bit and found that the the user s...

python - django binary (no source code) deployment

is there possible only to deploy binary version of web application based on django , no source code publish? Thanks

python - Pylons deployment questions

I'm a beginner with Pylons and I've mostly developed on my localhost using the built-in web server. I think it's time to start deployment for my personal blog, I have a Debian Lenny server with apache2-mpm-prefork module and mod_wsgi - I've never really used mod_wsgi or fastcgi and I hear either of these are the way to go. My questions: Should I go w...

python - buildout deployment strategies

So I am applying zc.buildout to an existing django project. I am wondering about deploying it now. How do I achieve the sandbox effect on a production server?

What are good Python and/or Django deployment solutions?

For now I use some mix between virtual_env, pip and Fabric. This allows to: install required libs; generate dynamic content; isolate installation; push eve...

python - Can PyAMF support service deployment by way of the filesystem?

I'm evaluating PyAMF to replace our current PHP (ugh) AMF services framework, and I'm unable to find the one crucial piece of information that would allow me to provide a compelling use case for changing over: Right now, new PHP AMF services are deployed simply by putting the .php files in the filesystem; the next time they're accessed, the new service is in play. Removal of a service is as simple as deleting the ....

python - Where to store deployment scripts

Assuming that I have the following directory structure for a Python project: config/ scripts/ src/ where should a fabric deployment script should go? I assume that it should be in scripts, obviously, but for me it seems more appropriate to store in scripts, the actual code that fires up the project.

linux - A simple Python deployment problem - a whole world of pain

We have several Python 2.6 applications running on Linux. Some of them are Pylons web applications, others are simply long-running processes that we run from the command line using nohup. We're also using virtualenv, both in development and in production. What is the best way to deploy these applications to a production server? In development we simply get the source tree ...

python - deployment public keys

How do you guys deploy your code on your servers? I am using Fabric and Python and I would like a more automated way of pulling code from the repository through the use of public keys, but without any ops or manual intervention to set up the public keys. Are you storing them in the code as text or in a database and generate the pk file on the fly? Any other opinions on this one ?

Still can't find your answer? Check out these communities...

PySlackers | Full Stack Python | NHS Python | Pythonist Cafe | Hacker Earth | Discord Python