setuptools包需要允许未经验证的git repos

时间:2014-09-01 07:49:37

标签: python pip packaging setuptools

如何在setup.py中允许外部要求?

例如:

setup(
    ...
    install_requires=['some_package',]
    dependency_links=['git+ssh://git@gitlab.com/some/repo.git#egg=some_package'],
    ...
)

这失败了:

Could not find any downloads that satisfy the requirement some-package in /home/myhome/Envs/some_venv/lib/python2.7/site-packages (from asdf==0.1.0)
Some insecure and unverifiable files were ignored (use --allow-unverified some-package to allow).

--allow-all-external--allow-unverified some-package git+ssh://...添加到requirements.txt并使用pip install -r requirements.txt安装,它可以正常工作。

但是,我无法在setup.py

中使用它

0 个答案:

没有答案