Skip to content

Commit

Permalink
Don't build stubs for cython modules. We currently don't have any cyt…
Browse files Browse the repository at this point in the history
…hon modules which we call from Python, and newer versions of stubgen cause unique stubs to be built with each build even in the absense of changes ref: sizmailov/pybind11-stubgen#235
  • Loading branch information
dagardner-nv committed Dec 11, 2024
1 parent a960e7e commit c946406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/morpheus_utils/python/python_module_tools.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ macro(__create_python_library MODULE_NAME)
# succeed
add_dependencies(${PYTHON_ACTIVE_PACKAGE_NAME}-modules ${TARGET_NAME})

if(_ARGS_BUILD_STUBS)
if(_ARGS_BUILD_STUBS AND NOT _ARGS_IS_CYTHON)
# Get the relative path from the project source to the module root
cmake_path(RELATIVE_PATH _ARGS_MODULE_ROOT BASE_DIRECTORY ${PROJECT_SOURCE_DIR} OUTPUT_VARIABLE module_root_relative)

Expand Down

0 comments on commit c946406

Please sign in to comment.