Skip to content

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commented Sep 6, 2023

Fix a race condition in "make regen-all". The deepfreeze.c source and files generated by Argument Clinic are now generated or updated before generating "global objects". Previously, some identifiers may miss depending on the order in which these files were generated.

  • "make regen-global-objects": Make sure that deepfreeze.c is generated and up to date, and always run "make clinic".
  • "make clinic" no longer runs generate_global_objects.py script.
  • "make regen-deepfreeze" now only updates deepfreeze.c (C file). It doesn't build deepfreeze.o (object) anymore.
  • Remove misleading messages in "make regen-global-objects" and "make clinic". They are now outdated, these commands are now safe to use.
  • Document generates files in Doc/using/configure.rst.

Co-authored-by: Erlend E. Aasland erlend@python.org
(cherry picked from commit db1ee6a)


📚 Documentation preview 📚: https://cpython-previews--109019.org.readthedocs.build/

Fix a race condition in "make regen-all". The deepfreeze.c source and files generated by Argument Clinic are now generated or updated before generating "global objects". Previously, some identifiers may miss depending on the order in which these files were generated. * "make regen-global-objects": Make sure that deepfreeze.c is generated and up to date, and always run "make clinic". * "make clinic" no longer runs generate_global_objects.py script. * "make regen-deepfreeze" now only updates deepfreeze.c (C file). It doesn't build deepfreeze.o (object) anymore. * Remove misleading messages in "make regen-global-objects" and "make clinic". They are now outdated, these commands are now safe to use. * Document generates files in Doc/using/configure.rst. Co-authored-by: Erlend E. Aasland <erlend@python.org> (cherry picked from commit db1ee6a)
@Yhg1sYhg1s merged commit de0202e into python:3.12Sep 8, 2023
@vstinnervstinner deleted the fix_regen_all_race_cond branch September 8, 2023 13:37
Sign up for freeto 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.

4 participants

@vstinner@erlend-aasland@Yhg1s@bedevere-bot