2017-02-07 9 views
0

Я использую pip install git+http://example.com/some-folder/A.git.Как установить из Git repo, у которого есть зависимости, ссылки на другой Git repo

setup.py проекта А:

install_requires=['B==0.1.0'], 
# Dependencies 
dependency_links=[ 
    'http://example.com/some-folder/[email protected]', 
] 

Выход:

Could not find a version that satisfies the requirement B==0.1.0 (from A==0.3.0) (from versions:) 

No matching distribution found for B==0.1.0 (from A==0.3.0) 

Как я могу решить эту проблему?

ответ

0

Pip игнорирует dependency_links по умолчанию. Чтобы изменить это, вам необходимо указать опцию --process-dependency-links:

pip install --process-dependency-links git+http://example.com/some-folder/A.git