-
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
Improve message when setuptools is missing (PEP 518) #4989
Conversation
1692dbb
to
9fdcc27
Compare
Does it make sense to tell the user to upgrade to a non-existent version of pip? PEP 517 is still not supported, even in master, no? |
How does the following read? (current msg quoted)
This version of pip does not implement PEP 517, so it cannot build a wheel without setuptools. The next major version release of pip would implement PEP 517. |
I agree woth @benoit-pierre . I'll need to check the context of this (no time now) but I'm confused as to what's going on here. I thought that pre-PEP 517, projects wouldn't explicitly include setuptools in their build-requires, and we'd simply assume that as now, setuptools and wheel would be required. Post PEP 517, we'd allow build tools to be specified, but still fall back to setuptools/wheel. So still entirely possible for setuptools nort to be present. I'll check the wider code later, but as things stand I hope this is all irrelevant, as this message should never appear in practice (makes me wonder why it's appearing in the forkbomb example, though...) |
No hurries. I'm gonna sleep now anyways. =) |
Ah, I now see what's going on here. PEP 518 states that if The case we're catching here is when there is a But, #4647 has a
That's not specifying the build system, but rather additional requirements needed to execute It looks like #4647 is based on a mistaken assumption about how PEP 518 works. Ideally, we'd need to catch cases like this and give a more meaningful error, which the current proposed error doesn't really do. How about this:
|
How about reversing the order of those statements? |
|
(huh, cmd+enter posts a comment, interesting) |
Except, maybe instead of "Your" we need to mention the project name. |
Sounds OK to me. (Offtopic thought - if @benoit-pierre assumed in #4647, and no-one who reviewed that issue corrected him, that you only need to specify additional requirements needed for |
Yes, I think a line making this clear would be useful. I've committed the following:
It just came out of my head as I typed in what we'd discussed above. |
lgtm |
Please do not merge this until after gh-4799 as it will create merge conflicts and is a lower priority. |
Hello! I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something's wrong here as when I look at the PR, it says "0 files changed"...
Indeed, the warning message got moved into |
846f0a3
to
22124af
Compare
Whoops! I'd messed up... I had local changes that didn't get added before the merge commit. Anyway, rebased and squashed everything. :) |
22124af
to
398fea8
Compare
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. |
No description provided.