Commit 043aab7
BUG: Fix Python wrapping for itk::bio namespace classes
Three issues prevented the Python wrapping from building:
1. WRAPPER_AUTO_INCLUDE_HEADERS was ON, causing itk_wrap_class to
auto-derive wrong header filenames (itkCellularAggregateBase.h
instead of itkBioCellularAggregateBase.h). Disable auto-include
and rely on the explicit itk_wrap_include() directives, matching
the pattern used by Ultrasound (BlockMatching) and ITK Statistics.
2. CellularAggregateBase is a non-template class but was wrapped with
itk_wrap_class/itk_end_wrap_class (no itk_wrap_template calls),
producing an empty SWIG interface. Use itk_wrap_simple_class
instead so the class is properly registered.
3. itk_auto_load_submodules() processes .wrap files alphabetically,
causing CellularAggregate to load before its base class. Add
WRAPPER_SUBMODULE_ORDER to enforce correct dependency ordering.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 1d54a9e commit 043aab7
3 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
2 | 6 | | |
3 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | | - | |
3 | | - | |
| 3 | + | |
| 4 | + | |
0 commit comments