Reputation: 5818
I have an existing pip library, however I would like to make modifications to it over time. I have the pip library installed from a github project in a virtualenv. The only options I can think of for making edits before deciding a change is worth actually committing and pushing to the cloud is to edit the library directly within site-packages, which is particularly annoying as the virtualenv is stored within a docker container. Are there any short cuts or best practices to improve this workflow?
Upvotes: 1
Views: 27
Reputation: 102922
pip offers the -e
option for editable installs. This is very similar to running setup.py develop
to put a package in "development mode". This way you can keep your code where you want and change it as needed, without having to reinstall after fixing every syntax error and refactoring.
Upvotes: 1