Skip to content
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 configuring with pyproject.toml #582

Open
bgilbert opened this issue Nov 11, 2023 · 5 comments
Open

Document configuring with pyproject.toml #582

bgilbert opened this issue Nov 11, 2023 · 5 comments

Comments

@bgilbert
Copy link
Contributor

bgilbert commented Nov 11, 2023

This page notes that wheel reads settings from setup.cfg, but wheel's documentation is silent on whether pyproject.toml can be used instead. It appears that it can:

[tool.distutils.bdist_wheel]
py-limited-api = "cp311"

Please consider explicitly documenting this.

@agronholm
Copy link
Contributor

I had no idea this would work.

@henryiii
Copy link
Contributor

henryiii commented Nov 12, 2023

Last I heard this was still experimental.

Also, setting tool.distutils.bdist_wheel.universal = true, which declares a wheel can be run with Python 2 and 3, in a way that is not supported on any version of setuptools that supports Python 2, seems… strange.

@bgilbert
Copy link
Contributor Author

That's fair. I used universal = true as an example because the existing docs do too, but the setting I actually needed this for was py-limited-api (#583).

@henryiii
Copy link
Contributor

@abravalheri is this something that can be shown in docs yet?

@abravalheri
Copy link
Contributor

abravalheri commented Nov 12, 2023

Unfortunately not, the only stable way of changing these parameters is via setup.cfg.

I have been a bit busy lately but my intention is to "solve" config_settings first and then move to ext_modules and maybe later look into that. If anyone would like to champion these kind of configs in pyproject.toml, please feel free to open a discussion on the setuptools repo.

But it is extremely unlikely it will stabilise with the distutils name on it (so further changes are required).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants