LLNL / shroud

Shroud: generate Fortran and Python wrappers for C and C++ libraries
BSD 3-Clause "New" or "Revised" License
90 stars 7 forks source link

Move capsule code into py_statements #381

Closed ltaylor16 closed 1 month ago

ltaylor16 commented 1 month ago

Replace code generated in wrapp.py with Python code with statements in py_statements. This simplifies the Python while providing the user more control in the YAML file.

Removed py_statement fields:

Added py_statement fields:

destructor and destructor_name are similar to del_lines and capsule_type which used to exist in the Python wrapper.

Created mixin groups to share code among groups.