Other than that, it really just boils down to giving pip a git repository URL. If this is a new repo, you'll minimally need a setup.py so that pip can carry out the install. You can use your fork and then switch to an official release later. You made a fix to a third party project and can't wait for the pull request to be merged and deployed.You may have a library that you want to use in multiple projects, but it doesn't warrant creating a python package.You may want to quickly test out some code from a colleague.Why would you want to pip install from a git repository? I'll show you why you might want to do that and how to do it. It can be handy to use pip to install a project dependency directly from a git repository instead of from a Python package index. ![]() ![]() Did you know you can install a python library using a link to a git repository instead of package index?
0 Comments
Leave a Reply. |