Hatshepsut
Hatshepsut

Reputation: 6662

pip install --editable with a VCS url

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?

Upvotes: 8

Views: 7944

Answers (1)

Sardorbek Imomaliev
Sardorbek Imomaliev

Reputation: 15400

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>

Upvotes: 6

Related Questions