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
7
votes
1 answer

What is PasteDeploy and do I need to learn it if Eggs in Python are considered gone?

I'm quite new to Python. I've downloaded the Pyramid Framework and have been trying to understand it. It uses many separate tools for its work. For example some PasteDeploy. I tried to read PasteDeploy's manual but can't understand anything. There…
Green
  • 28,742
  • 61
  • 158
  • 247
6
votes
2 answers

Can Launch4J be set so that the exe files it creates cannot show its contents through zip/egg/rar file when right click on/ open with it?

Launch4J is a jar to exe converter. I used Launch4J to convert jar to exe but when I right click on that exe file Launch4J created, it shows the contents in the jar file (class, etc files) from which it was made from when I right click on that exe…
User7829300192
  • 128
  • 1
  • 8
6
votes
1 answer

pypi: Why don't all the packages use wheel?

This python wheel website says, only 300 of the top 360 packages use wheel. I further analysed the Python ecosystem and found that about 2961 packages out of top 5000 use wheel, and others don't. My questions are: If they don't use wheel, do they…
R4444
  • 2,016
  • 2
  • 19
  • 30
6
votes
1 answer

Unable to install pip: Permission denied error

I am trying to install pip but currently unable to. I navigate to the pip folder and python setup.py install Everything seems to go fine until the very end: Extracting pip-0.8.2-py2.6.egg to /Library/Python/2.6/site-packages Adding pip 0.8.2 to…
Eitan
  • 1,308
  • 3
  • 15
  • 32
6
votes
2 answers

Negative extra_requires in Python setup.py

I'd like to make a Python package that installs a dependency by default unless the user specially signals they do not want that. Example: pip install package[no-django] Does current pip and setup.py mechanism provide way to do this or does not…
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
6
votes
1 answer

How to easy_install egg plugin and load it without restarting application?

I'm creating an app that downloads and installs its own egg plugins, but I have a problem loading the egg after easy_install extracts it into place. This is how it works now: App downloads egg into temp folder Installs egg with…
lkraider
  • 4,111
  • 3
  • 28
  • 31
6
votes
2 answers

I created a Python egg; now what?

I've finally figured out how to create a Python egg and gotten it to work. Now... what do I do with it? How do I use it? How do I ensure that everything was correctly included? (Simple steps please... not just redirection to another site. I've…
froadie
  • 79,995
  • 75
  • 166
  • 235
6
votes
3 answers

pip install matplotlib fails: 'cannot build package freetype; "python setup.py egg_info" failed with error code 1'

I want to use matplotlib.pyplot. I can't because altoidnerd@LEPTON:~/ $ pip install matplotlib is failing on ubuntu 14 giving an egg_info error, and warning "cannot build package freetype" * The following required packages can not be built: …
Altoidnerd
  • 73
  • 1
  • 6
6
votes
1 answer

Removing old egg-info files on Python package setup

I have very basic Python setup scripts that just call distutils.core.setup() with relevant parameters. The packages are for internal use only, so I do not need much more than that at the moment. What bugs me is that when a new version of a package…
malenkiy_scot
  • 16,415
  • 6
  • 64
  • 87
6
votes
1 answer

What's the proper way to update Python packages when updating Python from 2.6 to 2.7?

I've installed A LOT of python packages for Python 2.6. Now I would like to upgrade Python to 2.7. Is there a proper or systematic way to update all the installed packages? In my system, all the packages are installed…
user1036719
  • 1,036
  • 3
  • 15
  • 32
5
votes
3 answers

Why does my python egg not work? - No distributions at all found for

I have made a distribution of my python package with the following setup.py #!/usr/bin/env python from setuptools import setup setup(name='mypackagename', version='0.1', description='Tool ....', author='Peter Smit', …
Peter Smit
  • 27,696
  • 33
  • 111
  • 170
5
votes
1 answer

Execute egg directly from Azure Data Factory

Question How to execute egg file from Azure Data Factory (AD) pipeline? Currently I'm able only to call Databricks notebook from where executing egg file. Any way to do that directly? What have been done Following this answer, I got the following…
VB_
  • 45,112
  • 42
  • 145
  • 293
5
votes
1 answer

How to run python egg (present in azure databricks) from Azure data factory?

So I created a small pyspark application and converted it to an egg. Uploaded it to dbfs:/FileStore/jar/xyz.egg. In ADF I used jar activity. But in Main Class Name textbox i am confused what to provide. My Pycharm application has three files, two of…
Bilal Shafqat
  • 689
  • 2
  • 14
  • 26
5
votes
3 answers

pypi: how to check if the package is using wheel

I want to write a script which goes through all the packages on pypi repository, to check whether they are using wheel or egg. I know that by the new standard, it is mandatory for all the packages to use wheel and not egg. I found this information…
R4444
  • 2,016
  • 2
  • 19
  • 30
5
votes
0 answers

Creating a Python Executable Package Similar to Java Jar file

I am working in an environment which has no sudo and internet access, therefore it is very useful to have a self contained application package that can be deployed anywhere. Having used Maven to package my java projects into executable jar files,…
chaooder
  • 1,358
  • 1
  • 17
  • 37