Skip to content

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

Closed

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

Activity

  1. added a commit that references this issue on Jul 27, 2026
  2. added a commit that references this issue on Aug 13, 2026
  3. added a commit that references this issue on Aug 13, 2026
  4. added this to the 26.0.0 milestone on Aug 13, 2026
  5. raulcd commented on Aug 13, 2026

    @raulcd
    Member

    Issue resolved by pull request 50377
    #50377

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions