-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document setting limited-api via build option better #624
Comments
build config settings, as in the kind that are compatible with
as documented by https://mesonbuild.com/Builtin-options.html#module-options |
Yes, we should be handling meson-python/mesonpy/__init__.py Line 758 in 6c728bd
And we just added a more descriptive error a few lines below that (not in the 0.16.0 release yet), but only for free-threaded CPython and not PyPy. Guess we should improve the error message and the docs a bit more. |
Yes, this worked, although somehow I found it hard to find this in the documentation. |
Great, thanks for confirming. Changed the issue title to reflect that we need to improve the docs here. |
What's the best way to do this currently? Enable limited-api pyproject.toml and disable it with |
The
limited-api
option can only be set through pyproject.toml, not through the build config settings that you can provide on the command line topip
orpython -m build
.Would you please consider supporting
limited-api
as a build config setting? I am using cibuildwheel to build a package that uses the limited API, but my build fails when it tries to install the build package and run my tests under pypy with the following error:I would like to be able to customize the build so that it sets
limited-api
to false for PyPy, but I can't do this becauselimited-api
is not a build config setting. Here's what I would like to do:The text was updated successfully, but these errors were encountered: