-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fail fast when use_2to3 is supplied. #2770
Conversation
@@ -289,6 +289,10 @@ def assert_bool(dist, attr, value): | |||
raise DistutilsSetupError(tmpl.format(attr=attr, value=value)) | |||
|
|||
|
|||
def invalid(dist, attr, value): | |||
raise DistutilsSetupError(f"{attr} is invalid.") |
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.
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.
I originally was writing the function with this check, but then I wanted to make the "check" function suitable for any invalid value. I'll review the referenced bug and consider this proposal.
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.
Yeah, it turned out more impactful on the scale than you've probably expected. Seems rather urgent.
@jaraco Thank you for the fast and excellent fix. Much appreciated. |
Fixes #2769.