-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[Draft] py-geant4 (g4py) #13639
[Draft] py-geant4 (g4py) #13639
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't even know Geant4 had python bindings.
|
Same here. But I saw you editing the |
|
I know Ben Morgan is in the Geant4 collaboration so I invited him to review. |
3bd6419
to
ac912e9
Compare
Draft of a geant4 binding for python. Same-version-pinning as already working in `adios` package for a very similar situation.
|
Hi, -https://bugzilla-geant4.kek.jp/show_bug.cgi?id=2201 As soon as there is any feedback or a solution for any of those problems I will write it here. |
|
@ax3l For what it's worth, in case you didn't know, the |
|
Thanks for the hint, okay so passing In the end we gave up for now and stick with the pure geant4 C++ version. Maybe if an upstream developer wants to assist us, start-to-end in e.g. a reproducible simple Docker environment, we can revisit this. |
Draft of a package shipping the Geant4 python bindings.
Same-version-pinning as already working in
adiospackage for a very similar situation.Note 1:
-lG4OpenGLlib seam to be required to buildg4py, otherwise related libs are not found during linking. Even with^geant4+openglthe lib is still missing in the install, but^geant4+opengl+x11helps.The error that is then showing up in linking is
Note 2:
g4pytries to link-lboost_pythoninstead of-lboost_python37Note 3: somehow
-lG4gl2psand-lG4clhepare also non-optional.Note 3: due to some problems installing root #13637 I am testing this package via
spack install py-geant4 ^root~xml~x~opengl.Note 5:
root +x(default) does not build (seen viaroot ~xml).Note 6:
root ~xdoes not build unless I also deactivate~opengl(default:+opengl).