-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Build option to dynamically set abi3 version #1894
Comments
What's the motivation for targeting multiple abi3 versions instead of the lowest supported? |
To be able to take advantage of improvements (e.g. performance) on newer versions, while maintaining compatibility. The specific improvement that motivated us to do this was https://github.com/PyO3/pyo3/blob/main/src/impl_/pymodule.rs#L83-L119 |
I think it's already possible by using pip wheel --config-settings=build-args='--features abi3-py312' |
Ah, that will be respected? Let me test it. Thanks! |
Hmm, it fails when building an sdist with:
|
I guess it fails everywhere except the places I passed that argument. |
To follow up on this, it's missing a key element that setuptools-rust "auto" provides: using abi3 with the current python if nothing is explicitly provided. |
Do you think support for something like "auto" abi3, where it used the current Python's version is possible? |
I think we can support this, we can change maturin to use the current Python's version when |
Currently the way to set abi3 version is via applying a versioned-feature in
Cargo.toml
(e.g.,abi3-py312
).I'm requesting a way set that at the CLI. The reason for this is to be able to build wheels targeting multiple abi3 versions from the same source.
We're currently able to do this with
setuptools-rust
with the following command:The text was updated successfully, but these errors were encountered: