Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip install --editable with a VCS url

Tags:

In man pip it says under --editable <path/url>,

Install a project in editable mode (i.e. setuptools "develop mode") from a local project path or a VCS url

What does that mean? Can I give it a repo branch on Github, and it'll go get it and install it and keep it updated as the branch changes?

like image 231
Hatshepsut Avatar asked Sep 07 '16 08:09

Hatshepsut


1 Answers

If you just want to install package from git repo read

-e or --editable is little bit different, it is used, as stated in docs, for setuptools's development mode. It makes installed packages editable.

Yes you can give it link to github. Read this answer for more info. But this link will only work if this repository contains setup.py with all installation instructions. And this package will be updated when you call

pip install -U -e <url>

But only if version of package in setup.py is higher than the one in your environment.

You can forcefully reinstall this package if you need to, when source did change but version didn't.

pip install -I -e <url>
like image 121
Sardorbek Imomaliev Avatar answered Sep 25 '22 14:09

Sardorbek Imomaliev