-
Notifications
You must be signed in to change notification settings - Fork 3k
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
pip fails to install remote dependency when it is a .whl and follows PEP 440 #6202
Comments
Some thoughts Is this some expected behavior? That what the PEP 440 says:
So, I believe I shouldn't be referencing a .whl file from somewhere like pypi.org? If that's not the case, I noticed that
|
I believe it is allowed to point a requirement to a file on the index server; what PEP 440 says is that the server itself should not allow it. The problem here is more likely that pip’s name parser is not smart enough to do the right thing. |
@uranusjr got it, it is not up to pip to make such restriction. |
@uranusjr Quick question: is this issue related to your comment here: #6097 (comment)? If so, how is it related? |
@cjerdonek I believe that's the same issue (sorry for duplicating it). |
@vinicyusmacedo No problem, that's okay. Just to clarify, does this mean your PR will completely resolve issue #6097? We can just make a note on that issue. |
@cjerdonek it will, since it splits the I forgot to mention, but I had issues with setuptools too because of this bug, pretty much as in #6097 and #6306 |
What is the status here - is it an accepted bug and looking-for-help, or work-underway/under-review, or issue-likely-rejected/won't-fix? This is biting me so just wondering whether it is time to pitch-in. |
@javabrett it is currently under review. #6203 |
Environment
pip 18.1
Python 2.7.12
Ubuntu 16.04.1 - Linux 4.15.0-42-generic
I'm using
virtualenv
on the version15.2.0
Description
When following PEP 508 and PEP 440's direct references and adding a dependency to a file, say
requirements.txt
like this:boto @ https://files.pythonhosted.org/packages/23/10/c0b78c27298029e4454a472a1919bde20cb182dab1662cec7f2ca1dcc523/boto-2.49.0-py2.py3-none-any.whl
doing a
pip install -r requirements.txt
gives this error.Expected behavior
Pip should download and install the dependency.
Note that including a
#
to the end of the URL works just fine.How to Reproduce
requirements.txt
) with some URLs to remote .whl files following PEP 440's direct referencespip install -r requirements.txt
The text was updated successfully, but these errors were encountered: