3 ms·
> pip install git+ssh://git@github.com:mitsuhiko/click.git Can someone comment regarding using pip like that? Is it fine to put this on req.txt? Any best pract
by philtar 12y ago
> pip install git+ssh://git@github.com:mitsuhiko/click.git
Can someone comment regarding using pip like that? Is it fine to put this on req.txt? Any best practices somewhere?
- toyg 12y agoThat syntax is usually meant for packages that you want to edit after installation (with -e). If you plan to release your stuff, the dependencies in your req.txt should be as pinned as possible. The classic example is Requests: when it changed the API fairly significantly, umpteen installers broke... just because people did not bother with specifying a version for that lib.
- berdario 12y agoYou can also install straight from a github tarballs: pip install "https://github.com/mitsuhiko/click/tarball/master#egg=click" https://github.com/mitsuhiko/click/tarball/master#egg=click" to pin a specific revision: pip install "https://github.com/mitsuhiko/click/tarball/5b7b7296fabc5d47d4ffd179be52492095e36f30#egg=click" https://github.com/mitsuhiko/click/tarball/5b7b7296fabc5d47d... (btw, it seems bad practice to add such a link as a dependency in your setup.py... usually you'd do it for temporary shallow forks, but otherwise I think it'd be better to also upload your shallow fork on pypi ...I guess you can just remove it from pypi if it won't be needed anymore)