The itk-stub-files build target was recently added to ITK (see https://github.com/InsightSoftwareConsortium/ITK/pull/3200) and propagates to external modules for generating Python type hints. Building ITKUltrasound against the ITK master branch produces an error from itk-stub-files:
19>------ Build started: Project: itk-stub-files, Configuration: RelWithDebInfo x64 ------
19>Generating .pyi files for Python wrapper interface
19>Traceback (most recent call last):
19> File "C:/repos/ITK/Wrapping/Generators/Python/itk/pyi_generator.py", line 609, in <module>
19> class_name = unpack(class_files, options.pyi_dir)
19> File "C:/repos/ITK/Wrapping/Generators/Python/itk/pyi_generator.py", line 391, in unpack
19> base = merge(class_definitions)
19> File "C:/repos/ITK/Wrapping/Generators/Python/itk/pyi_generator.py", line 450, in merge
19> raise AssertionError(
19>AssertionError: The basic values of two associated classes do not match.
19>Item 1: class `itkCurvilinearArraySpecialCoordinatesImage::ImageToImageFilter` has_new_method: `False` typed: `True` is_abstract: `False` is_enum: `False` has_superclass: `True`
Item 2: class `itkImageToImageFilter::ImageToImageFilter` has_new_method: `False` typed: `True` is_abstract: `False` is_enum: `False` has_superclass: `False`
19>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(245,5): error MSB8066: Custom build for 'C:\repos\unstable-us\CMakeFiles\59cd1609f310213907f4096a369dd2b1\itk-stub-files.rule;C:\repos\ITK\Wrapping\CMakeLists.txt' exited with code 1.
19>Done building project "itk-stub-files.vcxproj" -- FAILED.
Expect that this can be resolved with a few tweaks to wrapping files.
The
itk-stub-files
build target was recently added to ITK (see https://github.com/InsightSoftwareConsortium/ITK/pull/3200) and propagates to external modules for generating Python type hints. Building ITKUltrasound against the ITKmaster
branch produces an error fromitk-stub-files
:Expect that this can be resolved with a few tweaks to wrapping files.