Skip to content

Python Packaging Information

Tom edited this page May 21, 2018 · 3 revisions

Formats

Eggs

Installed directories & files

There are two basic formats currently implemented for Python eggs:

.egg

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

a file or directory placed adjacent to the project’s code and resources, that directly contains the project’s metadata.

Metadata

For the .egg format, the metadata is placed in an EGG-INFO subdirectory, directly within the .egg file or directory. For the .egg-info format, metadata is stored directly within the .egg-info directory itself.

The minimum project metadata that all eggs must have is a standard Python PKG-INFO file …​ In addition to the PKG-INFO file, an egg’s metadata directory may also include files and directories representing various forms of optional standard metadata …​

Clone this wiki locally