Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.13)
project(VCellMovingBoundary VERSION 1.0.1 LANGUAGES CXX C)
project(VCellMovingBoundary VERSION 1.0.2 LANGUAGES CXX C)

# C++ standard
set(CMAKE_CXX_STANDARD 14)
Expand Down
11 changes: 8 additions & 3 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ add_custom_command(TARGET _core POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${CMAKE_CURRENT_SOURCE_DIR}/${MB_PY_PACKAGE}/py.typed
${MB_PY_BUILD_DIR}/py.typed
COMMENT "Copying pyvcell_mbsolver/{__init__.py,py.typed} into the build tree"
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${CMAKE_CURRENT_SOURCE_DIR}/${MB_PY_PACKAGE}/_core.pyi
${MB_PY_BUILD_DIR}/_core.pyi
COMMENT "Copying pyvcell_mbsolver/{__init__.py,py.typed,_core.pyi} into the build tree"
)

# When building a wheel via scikit-build-core, SKBUILD is defined and the
Expand All @@ -49,11 +52,13 @@ install(TARGETS _core
COMPONENT python
)

# Install the pure-Python wrapper (the package __init__.py) and the PEP 561
# py.typed marker so type checkers use the package's inline annotations.
# Install the pure-Python wrapper (the package __init__.py), the PEP 561
# py.typed marker, and the _core type stub so type checkers use the package's
# inline annotations and the compiled extension's signatures.
install(FILES
${CMAKE_CURRENT_SOURCE_DIR}/${MB_PY_PACKAGE}/__init__.py
${CMAKE_CURRENT_SOURCE_DIR}/${MB_PY_PACKAGE}/py.typed
${CMAKE_CURRENT_SOURCE_DIR}/${MB_PY_PACKAGE}/_core.pyi
DESTINATION ${MB_PY_INSTALL_DEST}
COMPONENT python
)
Expand Down
Loading
Loading