我书面方式Python应用程序依赖于被在github上存储库发展的原因托管(从来没有在PyPI中)另一个。
让我们称之为:
- 应用程序被写入:
AppA
- 应用在github上:
AppB
在应用程序A中,setup.py是这样的:
# coding=utf-8
import sys
try:
from setuptools import setup, find_packages
except ImportError:
import distribute_setup
distribute_setup.use_setuptools()
from setuptools import setup, find_packages
setup(
...
install_requires=[
# other requirements that install correctly
'app_b==0.1.1'
],
dependency_links=[
'git+https://github.com/user/app_b.git@0.1.1#egg=app_b-0.1.1'
]
)
现在AppA
正在建造Jenkins CI
每推我让,因为一个错误的抛出一个错误:
error: Download error for git+https://github.com/user/app_b.git@0.1.1: unknown url type: git+https
有趣的是,这只有在詹金斯发生,它完美的作品在我的电脑上。 我试用过其他SSH网址github上给那些甚至不考虑下载。
现在,APPA被包含在一个项目也正在建设詹金斯的需求文件,所以安装通过人工的依赖pip install AppA
pip install AppB
是不是一种选择,依赖通过被包含在自动安装requirements.txt
。
有没有什么办法,使PIP和git与github上的url一起工作?
任何帮助将是非常赞赏:)
提前致谢!