The questions I've seen here so far deal with the opposite situation, i.e. providing a link to off-PyPI dependencies. In my case, the dependency is published in PyPI, but the version is not up to my requirements. Here is an excerpt from my setup.py
setup(
...
install_requires=["numpy>=1.11.0",
"scipy>=0.17.0",
"lasagne",
"Theano>=0.8.1",
"scipy>=0.17.0"],
dependency_links=["git+https://github.com/Lasagne/Lasagne.git#egg=lasagne"]
)
I need lasagne
to be installed from the link, while pip
insists on installing the PyPI version.
Edit. I've tried doing this
setup(
...
install_requires=["numpy>=1.11.0",
"scipy>=0.17.0",
"lasagne>=0.2.dev1",
"Theano>=0.8.1",
"scipy>=0.17.0"],
dependency_links=[
"git+https://github.com/Lasagne/Lasagne.git#egg=lasagne-0.2.dev1"]
)
This results in Could not find a version that satisfies the requirement lasagne>=0.2.dev1
Edit2
Actually passing the --process-dependency-links
flag as shown here (thanks to Nehal J. Wani) makes it work. How can I make this flag work by default? I don't want a user to be confused.