-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install from local git repo #1583
Comments
Instead of installing from local git repo, I would suggest to install from local directory directly. Just Will this resolve your problem? |
No, I specifically wanted to install from a certain commit in a repository, not from a directory. The repo happens to live in a local directory. |
AFAIK, there is no standarized URI format with commit hash for local git repos, so I do not think pipx should (and easy for pipx to) "create" it. Just let me know if I am wrong. For your use cases, I would suggest to I will close this issue and feel free to reopen it if necessary. |
It's part of PyPA: https://pip.pypa.io/en/latest/topics/vcs-support/ |
Sorry, I will further look into it. Thanks for the reference. Reopen the issue. |
Thank you very much :) |
It looks like we need to update the logic here: pipx/src/pipx/package_specifier.py Line 51 in 36d632d
We should support path to local git repo as well. |
Trying a few variations of
pipx install <SPEC>
always yieldsUnable to parse package spec:
I tried
/path/to/repo#<HASH>
,git:///path/to/repo#<HASH>
,git+file:///path/to/repo#<HASH>
,git+files:///path/to/repo#<HASH>
, and the same with.git
added to end of the path.Are local git operations unsupported?
The text was updated successfully, but these errors were encountered: