Skip to content

Allow the user to specify limited-api from the command line #787

@arcondello

Description

@arcondello

I think this is a more specific version of #639.

Currently, so far as I know, the only way to tell meson-python to tag a wheel as ABI compatible is with a project setting via the pyproject.toml

[tool.meson-python]
limited-api = true

However, for my project I would like to be able to build abi3 wheels for Python 3.12+, and not for lower versions. So it would be nice to be able to instead specify it via a build config setting. Something like

python -m build --config-setting=limited-api=true

I'd be happy to take a crack at a PR if this seems reasonable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    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