Skip to content

Commit

Permalink
Added py.typed marker file to python package.
Browse files Browse the repository at this point in the history
  • Loading branch information
timohl committed Aug 14, 2024
1 parent 564af88 commit 9a9cc95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cpp/pybind/make_python_package.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ file(COPY "${PYTHON_PACKAGE_SRC_DIR}/../examples/python/"
file(COPY "${PYTHON_PACKAGE_SRC_DIR}/../examples/python/"
DESTINATION "${PYTHON_PACKAGE_DST_DIR}/open3d/examples")

# Generate typing stub files (.pyi)
# Generate typing stub files (.pyi) and py.typed marker file.
message(STATUS "Generating typing stubs...")
message(STATUS "pybind11-stubgen open3d -o ${PYTHON_PACKAGE_DST_DIR}/stubs")
execute_process(COMMAND ${CMAKE_COMMAND} -E env PYTHONPATH="${PYTHON_PACKAGE_DST_DIR}" pybind11-stubgen open3d -o "${PYTHON_PACKAGE_DST_DIR}")
execute_process(COMMAND ${CMAKE_COMMAND} -E env PYTHONPATH="${PYTHON_PACKAGE_DST_DIR}" pybind11-stubgen open3d -o "${PYTHON_PACKAGE_DST_DIR}")
file(WRITE "${PYTHON_PACKAGE_DST_DIR}/open3d/py.typed")

0 comments on commit 9a9cc95

Please sign in to comment.