Skip to content

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

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-91c4c6b-3.15
Open

miss-islington wants to merge 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 91c4c6b8270478a6ef89cd0cb36d42c50495350c)

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants