Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,10 @@ if(PYOPENSIM_BUILD_WITH_OPENSIM)
endif()
endif()

# Install stub files for IDE support
install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/stubs/pyopensim/"
# Install stub files for IDE support.
# Install from the committed source stubs so wheels always ship them, even
# when the optional regeneration step in generate_stubs.py is skipped or
# fails (e.g. because the freshly built module cannot be imported yet).
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src/pyopensim/"
DESTINATION "${CMAKE_INSTALL_PREFIX}/pyopensim-stubs"
FILES_MATCHING PATTERN "*.pyi")