HaarigerHarald / geant4_pybind

Alternative Python bindings for Geant4
The Unlicense
35 stars 6 forks source link

Binding extensions #4

Open HaarigerHarald opened 2 years ago

HaarigerHarald commented 2 years ago

As the bindings are not feature complete one may need to extend them for their specific use. A very good starting point is incorporating automatically generated bindings (parsed.zip) from a custom parser. If the ownership model is non trivial however, please read the design overview and adapt the generated bindings accordingly.

For incremental debug builds one may want to build without pip, which can be achieved via:

pip3 install ninja pybind11-stubgen "setuptools>=42" "cmake>=3.16" wheel
python3 setup.py build_ext --debug install --user