如何在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
中使用它