--- a/lib/ftk/ftkPy/CMakeLists.txt 2026-10-04 01:03:59.000000000 +0200 +++ b/lib/ftk/ftkPy/CMakeLists.txt 2026-10-19 18:32:16.644733407 +0200 @@ -52,6 +52,8 @@ endif() # # nanobind_add_stub() would do this, but it runs stubgen directly with no # way to name those directories. +# the stub generator imports the built module, not possible when cross compiling +if(NOT CMAKE_CROSSCOMPILING) if(EXISTS ${NB_DIR}/src/stubgen.py) set(ftk_STUBGEN ${NB_DIR}/src/stubgen.py) else() @@ -91,12 +93,17 @@ add_custom_command( ${PROJECT_SOURCE_DIR}/etc/Python/check_stub.py ${ftk_PYTHON_STUB}) +install( + FILES + ${ftk_PYTHON_PACKAGE_DIR}/_feather_tk.pyi + ${ftk_PYTHON_PACKAGE_DIR}/py.typed + DESTINATION ${ftk_PYTHON_INSTALL_DIR}) +endif() + install(TARGETS _feather_tk LIBRARY DESTINATION ${ftk_PYTHON_INSTALL_DIR} RUNTIME DESTINATION ${ftk_PYTHON_INSTALL_DIR}) install( FILES __init__.py - ${ftk_PYTHON_PACKAGE_DIR}/_feather_tk.pyi - ${ftk_PYTHON_PACKAGE_DIR}/py.typed DESTINATION ${ftk_PYTHON_INSTALL_DIR})