我有一个带有git+ssh依赖项的包,如下所示:
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"
],
)
(我正在追踪最新的答案。)
here
关于git回购依赖关系。)
但是,我想跳过安装
hello-world
如果它已经安装在我当前的环境中。然而,如果我跑
pip install -e .
两次,第二次仍将克隆
你好,世界
.相比之下,如果我刚刚
install_requires=[r"hello-world"]
,它会正确地检测到这个要求已经得到满足。
在我看来
git+ssh
无法很好地检测已经满足的需求。我认为
#egg=hello-world
会解决这个问题的。我错过什么了吗?