]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-47152: Automatically regenerate sre_constants.h (GH-91439)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 12 Apr 2022 15:34:06 +0000 (18:34 +0300)
committerGitHub <noreply@github.com>
Tue, 12 Apr 2022 15:34:06 +0000 (18:34 +0300)
commit474fdbe9e4a2ff90ef39e8748da644c86a200981
treed15c64e70f6038121cf698b8b80b4436a0964e6d
parent943ca5e1d6b72830c530a72426cff094f155d010
bpo-47152: Automatically regenerate sre_constants.h (GH-91439)

* Move the code for generating Modules/_sre/sre_constants.h from
  Lib/re/_constants.py into a separate script
  Tools/scripts/generate_sre_constants.py.
* Add target `regen-sre` in the makefile.
* Make target `regen-all` depending on `regen-sre`.
Lib/re/_constants.py
Makefile.pre.in
Misc/NEWS.d/next/Build/2022-04-10-16-33-31.bpo-47152.TLkxKm.rst [new file with mode: 0644]
Modules/_sre/sre_constants.h
Tools/scripts/generate_sre_constants.py [new file with mode: 0755]