Questions tagged [egg]

A python egg is a file used for distributing python projects as bundles; it is usually compressed with the zip algorithm. Egg files normally include some metadata; the file extension is ".egg". The concept is very similar to a Java .jar file.

An egg is a bundle that contains all the package data. In the ideal case, an egg is a zip-compressed file with all the necessary package files. But in some cases, Python's setuptools decides (or is told via CLI switches) that a package should not be zip-compressed. In those cases, an egg is simply an uncompressed subdirectory, but with the same contents. The single file version is useful for transporting, and saves a little bit of disk space, but an egg directory is functionally and organizationally identical. The concept is very similar to a Java .jar file.

You may use an egg simply by pointing your shell environment's PYTHONPATH or Python's sys.path at it and importing as you normally would, for Python versions >= 2.5. If you wish to take this approach, you do not need to bother with setuptools or ez_setup.py at all.

354 questions
0
votes
2 answers

custom django management command not working when deployed as egg

I've made a little django app, only one management command, which is packaged into an egg. If I unzip the egg into a blank django project, add it to installed_apps, the management command works. However, when it is easy_installed onto a server and…
0atman
  • 3,298
  • 4
  • 30
  • 46
0
votes
1 answer

Strange co_filename for file from .egg during tracing in Python 2.7

When tracing(using sys.settrace) python .egg execution by Python 2.7 interpreter frame.f_code.co_filename instead of / eqauls to something like build/bdist.linux-x86_64/egg/ Is it a bug? And how to…
Dmitry Trofimov
  • 7,371
  • 1
  • 30
  • 34
0
votes
1 answer

Running Python from PHP

I have a python script that runs as a daemon process. I want to be able to stop and start the process via a web page. I made a PHP script that runs exec() on the python daemon. Any idea? Traceback (most recent call last): File …
user817759
  • 111
  • 2
  • 6
0
votes
1 answer

How do I add Django-dev from pip to site-packages?

I installed Django with C:\Python27\Lib\site-packages>pip install -e git+https://github.com/django/django.git#egg=django Unfortunately some programs (such as PyDev), work "easier" when your packages are in the site-packages directory. How do I…
user1438003
  • 6,603
  • 8
  • 30
  • 36
0
votes
2 answers

Celery error: "No module named billiard.forking" - how to diagnose?

I have no idea where to start diagnosing and fixing this: $ bin/django celeryd -l DEBUG -v 3 -------------- celery@lucid32 v3.0.3 (Chiastic Slide) ---- **** ----- --- * *** * -- [Configuration] -- * - **** --- . broker: …
Steve Bennett
  • 114,604
  • 39
  • 168
  • 219
0
votes
2 answers

How do I "semi install" a plugin that is normally installed as an egg, using setup.py develop?

I am trying to debug a plugin issue with Trac and TracMercurial. The plugin does not quite work for me when packaged as an egg and deployed normally. Using setup.py develop results in plugin not being visible. Using setup.py install works fine,…
Warren P
  • 65,725
  • 40
  • 181
  • 316
0
votes
0 answers

package existing egg into other egg using setup tools

my python project depends on a third-party egg, and i don't want this egg to be installed in my python environment. I can execute my code by adding this egg to my PYTHONPATH at run time, it works well. However, I was wondering if i could include…
user1151446
  • 1,845
  • 3
  • 15
  • 22
-1
votes
1 answer

How to write an If else condition to choose between two functions

Scenario: I have a file project.py whose job is to navigate to another folder to get the environment variables stored in a .yml file. There are two cases here, one job is to navigate to a directory and another to navigate to a directory in an egg…
Python
  • 1
  • 1
-1
votes
1 answer

cannot install networkx.*.*.egg package in python 3.3

i am Nobe about python and its package, I want to install networkx package for some graph calculation. I found it https://pypi.python.org/pypi/networkx/1.8.1 . But the file is .egg. Please help me to install that *.egg file for my python3.3 . Thank…
Amanda
  • 35
  • 1
  • 7
1 2 3
23
24