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(setup.py): look inside if name == main block #1613

Merged
merged 1 commit into from Sep 18, 2023

Conversation

henryiii
Copy link
Contributor

@henryiii henryiii commented Sep 13, 2023

Fixes #1611. We could slide down a slippery slope here, but this one is common and simple (vs. supporting **kwargs or something like that). And the code will look a lot better once we drop Python 3.9 from our runners in a few years.

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Copy link
Contributor

@joerick joerick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ASTs are kinda fun, so, yeah, i'm happy with it :)

@joerick joerick merged commit f0feaff into pypa:main Sep 18, 2023
23 checks passed
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.

setup.py setup() not detected in __name__ == '__main__' block
2 participants