-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Interoperability with legacy SWIG bindings #1706
Comments
It depends on what CPython internals SWIG is able to expose. As an example, you can look at projects that have interop with other bindings, like VTK and its Python binding layer (using its rich object model to handle stuff): Specifically, you'd need something like these type casters: Another example are OpenCV + pybind interop. Some examples / discussions: |
Considering there was no follow up, I'm closing this. Reopen if necessary. |
Hi,
not an issue per se, but a question.
What are the possibilities for having two sets of bindings based on pybind11 and SWIG interoperate? I have a use for a library with existing SWIG bindings, which I would like to extend preferably with pybind11 bindings. I would thus like to be able to pass around SWIG and pybind11 objects both ways.
Is there any scope at all for doing this or this is a deal breaker and a total migration towards pybind11 is required?
Thanks,
Kurt
The text was updated successfully, but these errors were encountered: