-
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
Do not attempt setup.py clean for failed pep517 builds #7477
Conversation
8e49ef3
to
faefea7
Compare
You can use #6642 as the issue for this one. |
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.
A test would be nice to prevent a future regression.
faefea7
to
e0785e3
Compare
Yep. But I'm actually wondering if the cleanup is still necessary since I believe pip always build in a temporary directory. OTOH there is this idea to have an option to build in place. |
I would check the history of that line to see if there's any justification, and also see what the |
For reference, |
Ah OK, that makes sense. In |
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 |
e0785e3
to
fc2bc2a
Compare
fc2bc2a
to
2ba4084
Compare
I added a test here. |
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.
A few minor comments, otherwise LGTM.
2ba4084
to
9dbe8df
Compare
# Must not have built the package | ||
expected = "Failed building wheel for pep517-wrapper-buildsys" | ||
assert expected in str(res) | ||
# Must not have attempted legacy cleanup |
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.
Since this is a "negative" test, it might be worth it to add a comment linking to this test in a "positive" test like test_cleanup_after_failed_wheel
(for the possible future, when we might modify Running setup.py clean for %s
log into something not containing setup.py clean
)
PS: tell me if I'm unclear ^^
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.
@xavfernandez good point, done.
9dbe8df
to
8d1d20d
Compare
Thanks @sbidoul for the PR and @chrahunt + @xavfernandez for the reviews! ^>^ |
When a pep517 build fails, pip unconditionally attempts to
setup.py clean
. This PR makes it do that only for legacy builds, since there may not be anysetup.py
in thepep517
case.Fixes #6642