Skip to content

Commit

Permalink
ENH: Remove python interface introspection
Browse files Browse the repository at this point in the history
The generation of the pyhton interface from
basic introspection was insufficient for
meaningfully improving IDE experiences.

Remove this implementation in favor of
creating a separate itk-stubs repository
with manually enhanced python interface files.
  • Loading branch information
hjmjohnson committed Dec 11, 2020
1 parent f6dcbb9 commit 693851b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 93 deletions.
8 changes: 0 additions & 8 deletions Wrapping/Generators/Python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ if(NOT EXTERNAL_WRAP_ITK_PROJECT)
itk/support/itkInitHelpers
itk/support/itkBuildOptions
itk/__init__
itk_generate_pyi # A utility function used to generate the intreface file
)
# Done listing files.
# Now copy these files if necessary.
Expand Down Expand Up @@ -998,10 +997,3 @@ else()
endmacro()

endif()

add_custom_command(OUTPUT ${ITK_WRAP_PYTHON_ROOT_BINARY_DIR}/itk/__init__.pyi
COMMAND ${Python3_EXECUTABLE} ${ITK_WRAP_PYTHON_ROOT_BINARY_DIR}/itk_generate_pyi.py
DEPENDS ${ITK_WRAP_PYTHON_FILES} ${WRAPPER_LIBRARY_NAME}Swig
WORKING_DIRECTORY ${ITK_WRAP_PYTHON_ROOT_BINARY_DIR}
COMMENT "Building python type interface file itk/__init__.pyi for the itk package"
)
85 changes: 0 additions & 85 deletions Wrapping/Generators/Python/itk_generate_pyi.py

This file was deleted.

0 comments on commit 693851b

Please sign in to comment.