Skip to content

[3.15] gh-140266: Only pass _PYTHON_HOST_PLATFORM when cross compiling (GH-161530) - #162373

Merged
itamaro merged 1 commit into
python:3.15from
miss-islington:backport-91c4c6b-3.15
Nov 24, 2026
Merged

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

Conversation

@miss-islington

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

Copy link
Copy Markdown
Contributor

configure sets _PYTHON_HOST_PLATFORM only for cross builds, but passed it
to the build Python for every --with-build-python build. In a native
build it was empty, so sysconfig.get_platform() returned "" and
build-details.json ended up with "platform": "".
(cherry picked from commit 91c4c6b)

Co-authored-by: Itamar Oren itamarost@gmail.com
Co-authored-by: Zanie Blue contact@zanie.dev
Co-authored-by: Claude Fable 5.1 noreply@anthropic.com
Co-authored-by: Kushal Das mail@kushaldas.in

…pythonGH-161530)

configure sets _PYTHON_HOST_PLATFORM only for cross builds, but passed it
to the build Python for every --with-build-python build. In a native
build it was empty, so sysconfig.get_platform() returned "" and
build-details.json ended up with "platform": "".
(cherry picked from commit 91c4c6b)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
Co-authored-by: Zanie Blue <contact@zanie.dev>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Kushal Das <mail@kushaldas.in>
@itamaro
itamaro merged commit f72c0df into python:3.15 Nov 24, 2026
50 checks passed
@miss-islington
miss-islington deleted the backport-91c4c6b-3.15 branch November 24, 2026 17:02
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