-
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's lack of support for PEP 508 URLs in requirements.txt / argument breaks pep517 #6306
Comments
Is this a duplicate of #6097 or just related, or does one depend on the other being fixed? |
@pradyunsg Should this still be labeled a vendored dependency given e.g. @pfmoore's comment here: pypa/pyproject-hooks#43 (comment) ? |
@cjerdonek I don't believe it should, so I removed that label. |
From the description, I believe this is partially the same as #6097. But this issue also claims that pip doesn't support PEP 508 URLs in command line arguments. I haven't verified that, but I have no reason to believe it's not the case. |
I just tested it to make sure I wasn't just imagining it, and command line arguments don't seem to like it either:
|
I don't think it'll help, but IIRC, the syntax requires spaces around the |
Nope. Thanks @pfmoore for handling this! :D |
@cjerdonek yeah pretty sure #6097 is the same and this could be considered a duplicate just with more information on other indirectly caused trouble (that being pep517's buildenv module breaking) edit: ...since I believe pep517 passes via |
@pfmoore FWIW, I just learned myself from one of the other issues that spaces aren't required here. It's only after an
@Jonast Thanks. Then what I'll do is close this issue, and hopefully you can keep an eye on the other two issues #6097 and #6202 and check when those issues are closed that your issue is resolved. It could also help if you could review PR's before they're merged and/or manually check from master that any proposed PR addresses it. |
Yeah, I just spotted that today as well. I wonder where I got the impression spaces were required? It's a weird constraint to have whitespace be significant, and I doubt I'd come up with it myself. Oh, well, at least I know the truth now :-) |
I went through the exact same thought process as you as I remembered seeing something before, too. I tracked down the issue, and it was this comment that put this notion in my head: #5903 (comment)
When I read it quickly at the time, I registered it as being in reference to the |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Environment
Description
pip's lack of support for PEP 508 URLs in requirements.txt / argument breaks pep517: any setuptools package that will have them in
setup_requires
will result in pep517'senvbuild.py
attempting to install it withpip
: https://github.com/pypa/pep517/blob/970f48beebf29b0831a3a067da4a0a3daac20193/pep517/envbuild.py#L135 - and this doesn't work, because pip doesn't take the PEP 508 URLs.However, using these URLs in
setup_requires
is kinda mandatory now, because it is the only way to reference a not-released-to-pypi-yet git project in a way that installs properly without using--process-dependency-links
. And it works splendidly - unless you try to use pep517, then the perfectly installable package suddenly will fail to be processed properly due to this issue.A different, very annoying side effect of this is that my setup.py needs to process
requirements.txt
to change the url format because I need non-PEP 508 URLs in setup.py due to this limitation, but PEP 508 URLs insetup_requires
, and I didn't want to store it twice in two places.Related PEP 517 ticket: pypa/pyproject-hooks#43
Expected behavior
requirements.txt
and other arguments of pip take PEP 508 URL formatHow to Reproduce
requirements.txt
e.g. withwobblui @ https://github.com/wobblui/wobblui/archive/master.zip
pip install -r requirements.txt
Output
The text was updated successfully, but these errors were encountered: