-
Notifications
You must be signed in to change notification settings - Fork 3
Move python bindings #57
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
Conversation
First question: the obvious thing to do it's to port all the public methods of the required structs to python (and at the end of all the public structs), but of course some of them are not just working out of the box. Should I do like for the objects, that I'm just implementing some of them for the time being, and so split the |
Before I answer your question, please use the |
I'm trying, but unfortunately the answer was not already before. However I can tell you that now we have brand new problems:
maturin develop --cargo-extra-args="--features python"
and same for
Are you sure that |
As far as I understand it should work, see https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute. For time being you can simply revert all changes. |
It seems that |
I would like to keep them, since I really like more the bindings organized this way than just spread all over, without any way to strip them off. |
Concerning your original question: I'd suggest that first tackle the most important methods and objects, just as in Which methods don't work out of the box? |
I'm looking in the thread for hints, seems like not always is a
Concerning the former question:
Fine, but actually I raised the question too early
Indeed, they few methods in
and so on, so it's not playing well with the following types:
that actually were perfectly fine (at least the first two) inside |
@alecandido : that's strange, I'll have a look at it. |
Actually the referred option is described here. I wonder if we should add it explicitly: before it was working fine (and it is on the old branch), so I imagine that either |
I'm closing this since we can't use |
Maybe there will be some chance later on: PyO3/pyo3#780 (comment) |
Move python bindings into main
pineappl
crate