Skip to content
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

Fix detection of compilation errors #8168

Closed

Conversation

deivid-rodriguez
Copy link
Contributor

This is used to retry without build isolation, but the message has changed in recent pip versions and was no longer matched. Now, at least in some cases, the error reads like this:

pip._internal.exceptions.InstallationSubprocessError: Getting requirements to build wheel exited with 1

@deivid-rodriguez deivid-rodriguez requested a review from a team as a code owner October 10, 2023 17:09
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/fix-incorrect-retry-detection branch from 665d703 to 74bbe0c Compare October 10, 2023 22:08
@deivid-rodriguez
Copy link
Contributor Author

After some more thought, and seeing a few other errors, I think it's probably best to replace the previous error message with the new one instead of relaxing it.

I'm seeing other pip._internal.exceptions.InstallationSubprocessError errors with different root causes unrelated to --build-isolation, and rerunning the command with --no-build-isolation probably won't work either and will only hide the real culprit even more.

This is used to retry without build isolation, but the message has
changed in recent pip versions and was no longer matched. Now, at least
in some cases, the error reads like this:

```
pip._internal.exceptions.InstallationSubprocessError: Getting requirements to build wheel exited with 1
```
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/fix-incorrect-retry-detection branch from 74bbe0c to 500455f Compare October 13, 2023 12:26
@deivid-rodriguez deivid-rodriguez changed the title Relax detection of compilation errors Fix detection of compilation errors Oct 13, 2023
@deivid-rodriguez
Copy link
Contributor Author

I updated this PR to use the more conservative approach 👍.

@deivid-rodriguez
Copy link
Contributor Author

This PR itself was not fixing any known issue, it needs extra fixes on top of it. So it may encrease runtime for no good reason, even if it's a bug fix. So I decided to introduce it together with other bug fixes over at #8189.

@deivid-rodriguez deivid-rodriguez deleted the deivid-rodriguez/fix-incorrect-retry-detection branch October 13, 2023 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants