Python - Egg distribution (bdist_egg)

Card Puncher Data Processing

About

Python Eggs are a python binary distribution format.

They have been deprecated for wheel. See Doc

A “Python egg” is a logical structure embodying the release of a specific version of a Python project, comprising:

  • its code,
  • resources
  • project metadata including scripts
  • and information about the project’s dependencies.

They are:

  • cross-platform (for “pure” packages),
  • directly importable,

They can be simply downloaded and added to sys.path directly, or they can be placed in a directory on sys.path and then automatically discovered by the egg runtime system.

Format

https://setuptools.readthedocs.io/en/latest/formats.html

There are two basic formats currently implemented for Python eggs:

  • .egg format: a directory or zipfile containing the project’s code and resources, along with an EGG-INFO subdirectory that contains the project’s metadata
  • .egg-info format: a file or directory placed adjacent to the project’s code and resources, that directly contains the project’s metadata.

egg-info

the project’s metadata (.egg-info) directory

See the command

Example:

egg_info must always appear on the command line before any commands that you want the version changes to apply to.

  • Creating a dated “nightly build” snapshot egg:
python setup.py egg_info --tag-date --tag-build=DEV bdist_egg
python setup.py egg_info -RDb "" sdist bdist_egg

Documentation / Reference





Discover More
Card Puncher Data Processing
Python - EasyInstall

Easy_Install install regular package old tool ? EasyInstall install egg distribution ...
Card Puncher Data Processing
Python - Packages (Archive, Distribution)

in Python Packages (or better Distribution package) are the result of the packaging of a project that may contains one or more (regular) package regular packageregular package A package is a compressed...
Card Puncher Data Processing
Python Packaging - Version / Release

and in Python This naming convention of compiled files allows compiled modules from different releases of Python to coexist. All below properties of a build. ie: alias...



Share this page:
Follow us:
Task Runner