Skip to content

[3.15] gh-136267: Read the target version from patchlevel.h in build-details.json (GH-161532) - #162301

Merged
itamaro merged 1 commit into
python:3.15from
miss-islington:backport-b09a7e9-3.15
Nov 20, 2026
Merged

itamaro merged 1 commit into
python:3.15from
miss-islington:backport-b09a7e9-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

With --with-build-python, the build Python can differ from the target in
patch version or release serial, but version_info and hexversion came from
the running interpreter. Read them from Include/patchlevel.h instead,
falling back to sys.version_info when the header is not there.
(cherry picked from commit b09a7e9)

Co-authored-by: Itamar Oren itamarost@gmail.com
Co-authored-by: Claude Fable 5.1 noreply@anthropic.com

…etails.json (pythonGH-161532)

With --with-build-python, the build Python can differ from the target in
patch version or release serial, but version_info and hexversion came from
the running interpreter. Read them from Include/patchlevel.h instead,
falling back to sys.version_info when the header is not there.
(cherry picked from commit b09a7e9)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
@itamaro
itamaro merged commit a37c337 into python:3.15 Nov 20, 2026
65 checks passed
@miss-islington
miss-islington deleted the backport-b09a7e9-3.15 branch November 20, 2026 00:55
Sign up for free to 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.

2 participants