Skip to content

Include SOABI_PLATFORM in stable abi extension filenames on 3.15 and newer #3281

Description

@ngoldbaum

CPython merged a late-breaking change for Python 3.15 to support adding platform tags in stable ABI extension filenames.

See PyO3/pyo3#6258 and linked issues.

Currently, Maturin just stringifies the ABI kind into either "abi3" or "abi3t" and uses that in the filename:

https://github.com/PyO3/maturin/blob/main/src/compile.rs#L616-L635

We'll need to generalize that and also add support for getting the SOABI_PLATFORM from an interpreter or inferring it without one. We should also add tests for this and explicit checks in the existing stable ABI tests to make sure builds on older python versions don't generate extensions with platform tags that older Pythons will reject.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions