-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Alternatives to symlinking Code Aster pyd files #66
Comments
hey, I encountered a similar issue but with regular python modules instead of dlls. Long story short, we decided to copy the files to avoid changing anything else. In the end this was the easier solution for us TBH I am not sure if pybind extensions can be compiled into static libs, can they then even be loaded in python? I dont think so, according to the original author of pybind |
Yeah, I did try to copy the files instead of symlinking. Unfortunately that resulted in the following error:
Which at the moment I am not quite able to understand how to fix. If you have any ideas as to where I should look, feel free to share :) In the meantime, I'll just keep digging :) |
that error does not seem to be related to the symlinking, but rather C <-> python interface itself |
Yes, it seems like So maybe there is something wrong with the python <-> fortran communication?
I wonder if it is possible to define ASTER_WITHOUT_PYMOD and just copy the module definitions in separate .c files and compile each of the files into its own pyd file and link to bibc.dll.. |
Hey, I managed to replace the pyd-dll symlinks with c++ code that loads the bibc/bibcxx dlls and returns the pybind11 module definitions. This seems to work just fine so far. The entrypoints are defined here: https://gitlab.com/krande/src/-/tree/win-support/msvc/c_entrypoints?ref_type=heads I will close this issue for now. If I find something lurking that makes this a unacceptable I can re-open it. |
Comment:
As mentioned in #65.
I am thinking I'll try to remove the following from the
bibc.dll
compilation and compile them separately to create standalone pyd's:@philbucher You mentioned in Jesusbill/code-aster-examples#2 that you are well versed in pybind11 :) Do you have any suggestions to how we might rewrite the pybind11 module definitions in Code Aster in order to not have to use symlinking?
The text was updated successfully, but these errors were encountered: