Skip to content

Avoid setting _PYTHON_HOST_PLATFORM for native builds - #44

Draft
zaniebot wants to merge 1 commit into
mainfrom
build/native-build-python-platform
Draft

zaniebot wants to merge 1 commit into
mainfrom
build/native-build-python-platform

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

Native builds using --with-build-python export an empty _PYTHON_HOST_PLATFORM, causing sysconfig.get_platform() and generated build-details.json to report an empty platform. Pass the variable to the build interpreter only when configure is cross-compiling.

Fixes python#140266.

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.

build-details.json is incorrect when using ./configure --with-build-python on a non-cross build

1 participant