Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine the name of an egg for a Python package on Github?

Tags:

I know I can install with

$ pip install -e git+https://git.repo/some_pkg#egg=SomePackage 

but -- when I'm trying to use somebody else's package -- how do I determine what the name of the egg is?

like image 796
Brian Dant Avatar asked Feb 07 '14 22:02

Brian Dant


People also ask

What is egg in Python package?

A “Python egg” is a logical structure embodying the release of a specific version of a Python project, comprising its code, resources, and metadata. There are multiple formats that can be used to physically encode a Python egg, and others can be developed.

What is an egg GitHub?

An Egg is just some bundled python code. In a git url, the egg is the project name.


1 Answers

Look at the git repo, find the setup.py file in the root and find what is passed to the name keyword in the setup() function call.

For example, the Pyramid setup.py has:

setup(name='pyramid', 

so you'd use:

$ pip install -e git+https://github.com/Pylons/pyramid.git#egg=pyramid 
like image 124
Martijn Pieters Avatar answered Oct 13 '22 01:10

Martijn Pieters