Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix crash formatting error message#4809

Merged
abravalheri merged 5 commits into
pypa:mainfrom
ngoldbaum:fix-error-crash
Jan 20, 2025
Merged

Fix crash formatting error message#4809
abravalheri merged 5 commits into
pypa:mainfrom
ngoldbaum:fix-error-crash

Conversation

@ngoldbaum

@ngoldbaum ngoldbaum commented Jan 17, 2025

Copy link
Copy Markdown
Contributor

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

Comment thread setuptools/command/bdist_wheel.py Outdated
@abravalheri

Copy link
Copy Markdown
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?

Comment thread setuptools/command/bdist_wheel.py Outdated
Comment thread setuptools/command/bdist_wheel.py Outdated
@abravalheri abravalheri merged commit a443f76 into pypa:main Jan 20, 2025
@abravalheri

Copy link
Copy Markdown
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