Skip to content

Commit

Permalink
Updated detection of pybind11_mkdoc being present
Browse files Browse the repository at this point in the history
  • Loading branch information
themarpe committed Sep 21, 2023
1 parent 1ffd3fd commit aceaffe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ jobs:
run: |
python -m pip install --upgrade pip
sudo apt install libusb-1.0-0-dev
python -m pip install clang==14.0 --force-reinstall
python -m pip install -r docs/requirements_mkdoc.txt
- name: Configure project
run: cmake -S . -B build -DDEPTHAI_PYTHON_FORCE_DOCSTRINGS=ON -DDEPTHAI_PYTHON_DOCSTRINGS_OUTPUT="$PWD/docstrings/depthai_python_docstring.hpp"
Expand Down
2 changes: 1 addition & 1 deletion cmake/pybind11-mkdoc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function(pybind11_mkdoc_setup_internal target output_path mkdoc_headers enforce)

# Execute module pybind11_mkdoc to check if present
message(STATUS "Checking for pybind11_mkdoc")
execute_process(COMMAND ${PYTHON_EXECUTABLE} -m ${PYBIND11_MKDOC_MODULE_NAME} RESULT_VARIABLE error OUTPUT_QUIET ERROR_QUIET)
execute_process(COMMAND ${PYTHON_EXECUTABLE} -m ${PYBIND11_MKDOC_MODULE_NAME} --help RESULT_VARIABLE error OUTPUT_QUIET ERROR_QUIET)
if(error)
set(message "Checking for pybind11_mkdoc - not found, docstrings not available")
if(NOT enforce)
Expand Down

0 comments on commit aceaffe

Please sign in to comment.