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

Skip to content

bpo-46712: Do not Regen Deep-Frozen Modules before Generating Global Objects #32061

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

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented Mar 22, 2022

We have to run regen-deepfreeze before running Tools/scripts/generate-global-objects.py; otherwise we will miss any changes to global objects in deep-frozen modules (which aren't committed in the repo). However, building $(PYTHON_FOR_FREEZE) fails if one of its source files had a global object added or removed, without generate-global-objects.py running first. So make regen-global-objects would sometimes fail.

We solve this by running generate-global-objects.py before and after regen-deepfreeze. To speed things up and cut down on noise, we also avoid updating the global objects files if there are no changes.

https://bugs.python.org/issue46712

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants