From f8c7641fb5585a7d0ac24f929cbc5e9890d7fe9a Mon Sep 17 00:00:00 2001 From: Robin De Schepper Date: Tue, 5 Dec 2023 17:49:38 +0100 Subject: [PATCH] include new typing files in build --- python/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index de26283cd2..859c2af4ef 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -83,10 +83,14 @@ endif() add_subdirectory(test) # Create the Python module in the build directory. -# The module contains the dynamic library, __init__.py and VERSION information. +# The module contains the dynamic library, __init__.py, the .pyi type stubs, py.typed +# marker and VERSION information. set(python_mod_path "${CMAKE_CURRENT_BINARY_DIR}/arbor") set_target_properties(pyarb PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${python_mod_path}") file(COPY "${PROJECT_SOURCE_DIR}/python/__init__.py" DESTINATION "${python_mod_path}") +file(COPY "${PROJECT_SOURCE_DIR}/python/env.pyi" DESTINATION "${python_mod_path}") +file(COPY "${PROJECT_SOURCE_DIR}/python/__init__.pyi" DESTINATION "${python_mod_path}") +file(COPY "${PROJECT_SOURCE_DIR}/python/py.typed" DESTINATION "${python_mod_path}") file(COPY "${PROJECT_SOURCE_DIR}/VERSION" DESTINATION "${python_mod_path}") # Set the installation path