-
Notifications
You must be signed in to change notification settings - Fork 784
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
Add error messages when compiling for ABI3 with unsupported macro features #3945
Comments
Hi! |
Thanks for volunteering! To focus on Once that's figured out, look for e.g. the |
Once the error has been implemented, it would be worth adding a test for this as part of |
Hey @davidhewitt, I've opened PR #3993 |
@davidhewitt I think this is closed now, right? |
Yes, many thanks again! |
Building from #3835 (comment) and https://pyo3.rs/v0.20.3/building_and_distribution#missing-features
We have some
#[pyclass]
options which do not work on older ABI3 versions:#[pyo3(text_signature = "...")]
does not work on classes until Python 3.10 or greater.#[pyclass(dict)]
and#[pyclass(weakref)]
options on classes are not supported until Python 3.9 or greater.At the moment I think these conditions fail silently (they compile but the runtime behaviour is missing). The proc macros should instead detect these cases and emit a helpful warning.
The text was updated successfully, but these errors were encountered: