I have a package with a git+ssh dependency, like this:
setup(
name="setuprequires",
version="0.1",
packages=["setuprequires"],
install_requires=[
r"hello-world @ git+ssh://git@github.com/hello/hello-world.git#egg=hello-world"
],
)
(I'm following the most up-to-date answer here regarding git repo dependencies.)
However, I'd like to skip installing hello-world
if it's already installed in my current environment. Yet, if I run pip install -e .
twice, the second time will still clone hello-world
. In contrast, if I had just used install_requires=[r"hello-world"]
, it would've correctly detected that this requirement was already satisfied.
It seems to me that git+ssh
doesn't play nicely with detecting already-satisfied requirements. I would think that having #egg=hello-world
would've fixed this problem. Am I missing something?