You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Limited api / stable abi: simple command line option? #793
And potentially add a project option to specify the limited_api version targeted so that one can run:
python -m build -Csetup-args=-Dlimited-api=3.12"
It seems to me that it would be nicer to have a specific meson-python option so that one can just run things like:
# to produce `cp312-abi3` wheels
python -m build -Climited-api=3.12
# to produce standard wheels
python -m build
Note that it seems that the limited API/stable ABI could become more important with 3.15 to build wheels compatible with free-threading and GIL-enabled builds of CPython (see https://peps.python.org/pep-0803/).
Thanks for the suggested improvement @paugier. It looks to me like you are largely correct - it's hard to use right now. I just noticed that there is more extensive discussion on this in gh-787. I think that covers everything in this issue. Could you please read through that and confirm that, and if not comment there? I'd like to close this as a duplicate and continue on that issue.
Note that that discussion does contain a workaround right now that may be helpful for you (the default_options: ['python.allow_limited_api=false'], part).
Activity
rgommers commentedon Oct 19, 2025
Thanks for the suggested improvement @paugier. It looks to me like you are largely correct - it's hard to use right now. I just noticed that there is more extensive discussion on this in gh-787. I think that covers everything in this issue. Could you please read through that and confirm that, and if not comment there? I'd like to close this as a duplicate and continue on that issue.
rgommers commentedon Oct 19, 2025
Note that that discussion does contain a workaround right now that may be helpful for you (the
default_options: ['python.allow_limited_api=false'],part).limited-apifrom the command line #787