Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install non-editable tag/branch from Git repo with pip

Tags:

I would like to install a non-editable (e.g. no -e option) tag or branch from a Git repo using pip and cannot seem to find out how to do it.

If I do this:

pip install git+git://github.com/django/[email protected]#egg=django 

It just installs Django master branch and not the 1.2.5 tag. I know that I can install it using the -e option but I don't want to fill up my src dir with packages I am not modifying. This seems like it should be straightforward thing to do but I can't seem how to do it...

Is this possible? If so, how can I accomplish it?

Thanks for any answers!

like image 817
Dana Woodman Avatar asked Feb 15 '11 18:02

Dana Woodman


People also ask

Does pip work for Git?

pip supports installing from various version control systems (VCS). This support requires a working executable to be available (for the version control system being used). It is used through URL prefixes: Git -- git+

Is it possible to use pip to install a package from a private github repository?

Read the Docs uses pip to install your Python packages. If you have private dependencies, you can install them from a private Git repository or a private repository manager.


1 Answers

You are probably using an old pip version. Try upgrading your pip:

pip install --upgrade pip 

There was an issue to it, and I just tried version 0.8.2 (the latest at the moment) and it works ;-)

like image 109
Hugo Tavares Avatar answered Oct 01 '22 21:10

Hugo Tavares