From ae7ca8c993789bbca7b2b8230defafee073731c6 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 4 Nov 2026 16:15:47 +0000 Subject: [PATCH] Install libcap-dev in the CI so python-prctl (picamera2) can build Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01Tdiso1u1ZhikSutj2Qs5Cg --- .github/workflows/Testbase.yml | 2 +- .github/workflows/compatibility.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Testbase.yml b/.github/workflows/Testbase.yml index a607bd1..c5d389e 100644 --- a/.github/workflows/Testbase.yml +++ b/.github/workflows/Testbase.yml @@ -25,7 +25,7 @@ jobs: python-version: ${{ inputs.python }} - name: Install package run: | - sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils + sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils libcap-dev python -m pip install --upgrade pip export QT_DEBUG_PLUGINS=1 pip install flake8 pytest pytest-cov pytest-qt pytest-xdist pytest-xvfb setuptools wheel numpy h5py ${{ inputs.qt5 }} toml diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml index 124ab9d..84065f3 100644 --- a/.github/workflows/compatibility.yml +++ b/.github/workflows/compatibility.yml @@ -43,6 +43,11 @@ jobs: with: python-version: ${{ matrix.python-version }} + # python-prctl (needed by picamera2) is compiled against the libcap headers + - name: Install libcap headers (Linux) + if: runner.os == 'Linux' + run: sudo apt update && sudo apt install -y libcap-dev + - name: Install dependencies run: | python -m pip install --upgrade pip