You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix handling of wrap-ignore for base classes to avoid invalid cimport in derived classes
Previously, autowrap would generate a `from ... cimport` statement for derived classes even if their base class was marked with `wrap-ignore`. This caused build failures due to missing .pxd files for ignored base classes, especially when those were the only contents of their file.
This change checks whether the base class has the `wrap-ignore` annotation and, if so, suppresses the cimport generation for the derived class. This prevents erroneous imports like:
From ._pyopenms_20 cimport SpectrumAccessTransforming
When SpectrumAccessTransforming is intentionally not wrapped.
Also adds an optional debug message to clarify when this skip occurs.
This fix preserves expected behaviour for abstract base classes and improves compatibility when selectively wrapping a class hierarchy.
Fixes: #194
0 commit comments