bpo-45019: Add a tool to generate list of modules to include for frozen modules#27980
Conversation
|
Is this ready for review (apart from the failing test)? |
Yes. (I need to figure out why "make regen-keywords" isn't working for me locally. Something about |
gvanrossum
left a comment
There was a problem hiding this comment.
I've only gotten to frozen.c, I'll review the rest later. So far this is great, I just have a few nits about outdated comments.
gvanrossum
left a comment
There was a problem hiding this comment.
Here's the rest. It's looking much better than the version I used for my "codegen" experiments!
gvanrossum
left a comment
There was a problem hiding this comment.
LGTM! Do you want any other reviewers? Pablo?
|
This change is focused on cleanup, so other reviewers probably aren't necessary. The next PR (freezing some of the stdlib modules) might deserve more than one. |
There are a few things I missed in gh-27980. This is a follow-up that will make subsequent PRs cleaner. It includes fixes to tests and tools that reference the frozen modules. https://bugs.python.org/issue45019
Frozen modules must be added to several files in order to work properly. Before this change this had to be done manually. Here we add a tool to generate the relevant lines in those files instead. This helps us avoid mistakes and omissions.
https://bugs.python.org/issue45019