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 crash formatting error message #4809

Merged
merged 5 commits into from
Jan 20, 2025
Merged

Conversation

ngoldbaum
Copy link
Contributor

@ngoldbaum ngoldbaum commented Jan 17, 2025

Summary of changes

Avoids an AttributeError on non-posix systems, where sys.abiflags isn't set.

Closes #4807

This code was originally authored by @abravalheri in #4424. I think the non-POSIX limitation was just missed there.

That PR didn't add tests for this error so I thought it was fair game to fix it without a test as well 🙃.

Pull Request Checklist

@abravalheri
Copy link
Contributor

Thank you very much @ngoldbaum. How about we just drop the ABI note? This would get rid of the branching and make the code more robust to errors. I don't think that the note adds much more information than what the rest of the message is already providing?

setuptools/command/bdist_wheel.py Outdated Show resolved Hide resolved
setuptools/command/bdist_wheel.py Outdated Show resolved Hide resolved
@abravalheri abravalheri merged commit a443f76 into pypa:main Jan 20, 2025
22 checks passed
@abravalheri
Copy link
Contributor

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Error formatting error message in bdist_wheel on Windows
3 participants