-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setuptools install fails with PEP508 URLs #1983
Comments
Been breaking my head over this for few days. Now that |
I had the same problem and was confused, that sometimes you find references that PEP508 urls solves the problem - and it does (at least I think so). I hope the following solution is a help for you. Otherwise, I may support you as I was also digging into the problem for days. What's important: You need an up to date version of
|
Hold on - I'm wrong. I still have the same problem as @davidwilby reported. Was using What's interesting is that installing a package containing a PEP508 referenced URL is working (this is involving setup.py). This example is working and setup.py contains a PEP508 urls:
|
Our policy to date has been that if using Direct invocations of We to need to work out a plan for actively deprecating and then removing If someone wants to try to figure out why this is happening, feel free, but it's not clear that we would be willing to accept a PR fixing it if it comes with any additional maintenance burden. |
@pganssle Thanks for the clarification! |
hmm, that is an interesting position, given that for many of us If Does that also apply to |
setuptools v 45.1.0
pip v 20.0.2
Running
python setup.py install
for a setup.py which includes PEP508 format URLs in theinstall_requires
field results in failure.for example if
keras @ https://github.com/MarcBS/keras/archive/master.zip
is in theinstall_requires
field then setuptools fails to find it, and looks on PyPI instead, installing a matching package (in this case 'keras').However, running
pip install .
for the samesetup.py
succeeds, similarly withpip install keras @ https://github.com/MarcBS/keras/archive/master.zip
.If setuptools always uses pip to install dependencies, then why does it fail for PEP508 URL dependencies when pip is able to do this?
In summary:
pip install .
works ✔️pip install 'keras @ https://github.com/MarcBS/keras/archive/master.zip'
works ✔️python setup.py install
fails ❌(further to this, PyPI throws an error when uploading a package with a setup.py containing PEP 508 dependency links)
The text was updated successfully, but these errors were encountered: