保持pip要求.txt对于pkg1,git repo包含以下内容
repo/pkg1
repo/pkg2
repo/pkg3
repo/pkg4
所有包都在一个repo中签入,pkg1依赖于pkg2
如何重新生成要求.txt当环境具有可编辑包时的文件将生成的URL锁定到特定git提交的示例:
-电子邮箱+ssh://git@github.com/username/repo.git@562ba58a6b98a29fe0914428c097f\egg=pkg1&subdirectory=pkg1
显然pip中的相对路径断开了,如何在编辑模式下指定pkg1和pkg2要求.txt?在
示例要求.txt生成的文件:
colander==1.0
cryptography==1.4
docutils==0.12
-e git+ssh://git@github.com/username/project1.git@562ba58a6b98a29fe87877289d2abc24eb8c097f#egg=frontend&subdirectory=frontend
gunicorn==19.3.0
schedule==0.3.2
-e git+ssh://git@github.com/username/project1.git@562ba58a6b98a29fe87877289d2abc24eb8c097f#egg=shared&subdirectory=shared
shellescape==3.4.1
six==1.10.0
SQLAlchemy==1.0.11
transaction==1.4.4
translationstring==1.3
venusian==1.0
waitress==0.8.10
在这个例子中,pkg1是前端,而pkg2是共享的
目前没有回答
相关问题 更多 >
编程相关推荐