cpython/Tools/build
Victor Stinner de0202e937
[3.12] gh-108740: Fix "make regen-all" race condition (#108741) (#109019)
gh-108740: Fix "make regen-all" race condition (#108741)

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 db1ee6a19a)
2023-09-08 15:19:20 +02:00
..
check_extension_modules.py
deepfreeze.py gh-103875: Use ascii and latin1 singletons in deepfreeze (#103876) 2023-04-26 11:45:58 +00:00
freeze_modules.py [3.12] gh-108740: Fix "make regen-all" race condition (#108741) (#109019) 2023-09-08 15:19:20 +02:00
generate_global_objects.py gh-102500: Implement PEP 688 (#102521) 2023-05-04 07:59:46 -07:00
generate_levenshtein_examples.py gh-99016: Make build scripts compatible with Python 3.8 (GH-99017) 2022-11-02 20:30:09 +02:00
generate_opcode_h.py gh-103963: fix 'make regen-opcode' in out-of-tree builds (#104177) 2023-05-04 17:45:56 +00:00
generate_re_casefix.py
generate_sre_constants.py
generate_stdlib_module_names.py gh-98040: Remove just the imp module (#98573) 2023-04-28 16:17:58 -07:00
generate_token.py gh-102856: Initial implementation of PEP 701 (#102855) 2023-04-19 11:18:16 -05:00
parse_html5_entities.py
smelly.py
stable_abi.py [3.12] gh-102304: doc: Add links to Stable ABI and Limited C API (#105345) (#105371) 2023-06-06 13:11:28 +00:00
umarshal.py [3.12] Fix the long64 reader in umarshal.py (GH-107828) (#107849) 2023-08-11 11:59:45 +02:00
update_file.py
verify_ensurepip_wheels.py [3.12] gh-109002: Ensure only one wheel for each vendored package (GH-109003) (#109005) 2023-09-06 20:01:36 +02:00