-
-
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
Crates with multiple modules / submodules #266
Comments
How do other projects such as numpy, pandas, etc. handle this? |
That's a great question. I suspect they set up a series of Python files to wrap the c extensions, but I'd need to do further research... |
I think this isn't hard to support for pure Rust layout since we're already emitting The limitation is that this will only support submodules like |
I think the best solution to this is to export one |
In pandas we build almost all of our extensions into a _libs folder in the source, and every module maps back to an individual shared lib |
Multiple projects (numpy, pandas etc) are collections of multiple It is useful sometimes (for example when freezing aplication) |
This is a continuation of PyO3/pyo3#759
If a shared library exposes multiple modules, then it is possible to make all of them importable from Python by (ab)using symlinks, one for each module exposed, all pointing to the built
.so
.Would it make sense for maturin to handle this case (presumably with some extra configuration)?
The text was updated successfully, but these errors were encountered: