Closed
Description
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 the pyo3
features.
Basically, one can use the method included in the FAQ, along with adding default-features = false
to the numpy
crate to allow a project to run the tests successfully.
I can create a PR if you guys think this solution is acceptable.
Metadata
Metadata
Assignees
Labels
No labels