]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-112305: Fix check-clean-src to detect frozen_modules .h files. (GH-113344...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 21 Dec 2023 07:47:57 +0000 (08:47 +0100)
committerGitHub <noreply@github.com>
Thu, 21 Dec 2023 07:47:57 +0000 (07:47 +0000)
commit88e089cdbc88276d4b5898d1e39912ec14d5be80
tree63efacb387d428792c09395896bb44c5af8beed9
parent192711856bbe88e9dfeee9af00da22189047463e
[3.12] gh-112305: Fix check-clean-src to detect frozen_modules .h files. (GH-113344) (#113346)

gh-112305: Fix check-clean-src to detect frozen_modules .h files. (GH-113344)

A typo left this check broken so many of us who do out-of-tree builds
were seeing strange failures due to bad `Python/frozen_modules/*.h`
files being picked up from the source tree and used at build time from
different Python versions leading to errors like:

`Fatal Python error: _PyImport_InitCore: failed to initialize importlib`

Or similar once our build got to an "invoke the interpreter"
bootstrapping step due to incorrect bytecode being embedded.
(cherry picked from commit 103c4ea27464cef8d1793dab347f5ff3629dc243)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Makefile.pre.in
Misc/NEWS.d/next/Build/2023-12-21-05-35-06.gh-issue-112305.VfqQPx.rst [new file with mode: 0644]