-
Notifications
You must be signed in to change notification settings - Fork 120
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
Optionally disable pyo3/auto-initialize? #174
Comments
Also, I feel like |
Thanks for reporting. Doesn't the below workaround work? [dependencies.pyo3]
version = "0.13"
default-features = false
features = ["extension-module"]
That's worth considering. Actually, those features were not optional until recently. |
Ah, but I noticed that |
@kngwyu Yep, I saw that issue just now. I think we can just wait for the upstream. Feel free to close this issue. |
Currently, it is not possible to use
rust-numpy
with cargo test, due to the issue mentioned here https://pyo3.rs/v0.13.1/faq.html#i-cant-run-cargo-test-im-having-linker-issues-like-symbol-not-found-or-undefined-reference-to-_pyexc_systemerror.This is because even one disables the corresponding auto-initialize feature for
pyo3
,rust-numpy
still enables it.A workaround is in my fork at here, which adds a
pyo3-default
feature to control thepyo3
features.Basically, one can use the method included in the FAQ, along with adding
default-features = false
to thenumpy
crate to allow a project to run the tests successfully.I can create a PR if you guys think this solution is acceptable.
The text was updated successfully, but these errors were encountered: