Skip to content

fix(setup.py): look inside if name == main block - #1613

Merged
joerick merged 1 commit into
pypa:mainfrom
henryiii:henryiii/fix/mainif
Sep 18, 2023
Merged

joerick merged 1 commit into
pypa:mainfrom
henryiii:henryiii/fix/mainif

Conversation

@henryiii

@henryiii henryiii commented Sep 13, 2023 •

Copy link
Copy Markdown
Contributor

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>

@joerick joerick left a comment

Copy link
Copy Markdown
Contributor

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
@henryiii
henryiii deleted the henryiii/fix/mainif branch June 6, 2024 15:19
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