python - pip 从 github 安装 python 应用程序,不依赖 pypi

标签 python github pip setup.py

我们为自己编写了一个应用程序,如果我们的望远镜出现问题,它会调用我们。人们可以像这样安装这个应用程序(无需事先克隆):

pip install git+https://github.com/fact-project/shifthelper

我们喜欢我们的非开发人员 friend 可以安装该应用程序而无需事先克隆它。到目前为止一切顺利。


现在我们将应用程序的一部分提取到一个小库中,可以像这样安装:

pip install git+https://github.com/fact-project/smart_fact_crawler

但我们似乎无法在安装应用程序之前告诉setup.py中的pip如何安装所需的库。

我们尝试使用这个:

#setup.py
....
dependency_links=[
    "git+http://github.com/fact-project/smart_fact_crawler.git#egg=smart_fact_crawler",
],
....

那么如何在 setup.py 中指定非 pypi 依赖项?

最佳答案

来自Release Notes pip 值 1.5 (2014-01-01)

BACKWARD INCOMPATIBLE pip no longer respects dependency links by default. Users may opt into respecting them again using --process-dependency-links.

关于python - pip 从 github 安装 python 应用程序,不依赖 pypi,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36501236/

相关文章:

python - 列表内的字符串拆分

git - 无法将超过 100mb 的文件推送到 git hub

python - 错误 : Could not find a version that satisfies the requirement scikit-learn==0. 21.0

linux - 如何找到 Django 包

python - Docker jupyter notebook 使用容器 id 作为 ip,localhost

python - Pandas :重新采样多索引数据帧

python - 带有日语字符的MySQL

java - JGit 将 Repo A merge 到 fork 版本 repo B 中,其中 A 领先于 B

github - 计算RSA key 指纹

python - 如何使用 "truffle"搜索以 `pip` 开头的所有 Python 包?