Skip to content

[Python][Packaging] macOS wheel platform tag is malformed when deployment target is unset #50531

Description

@anxkhn

Describe the bug, including details regarding any error messages, version, and platform.

On macOS, ci/scripts/python_wheel_macos_build.sh constructs _PYTHON_HOST_PLATFORM before applying the default value for MACOSX_DEPLOYMENT_TARGET. When the script is run without that variable exported, the resulting wheel platform tag is macosx--<arch> even though the build then defaults to macOS 12.0.

Expected: the default produces macosx-12.0-<arch>.

Actual: the tag has an empty version component.

The packaging CI currently exports the deployment target, so this affects manual or local invocations that rely on the script default.

Component(s)

Python, Packaging

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions