Show a patch.

GET /api/1.1/patches/24163/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 24163,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/24163/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/24163/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20250819012815.9099-1-laurent.pinchart@ideasonboard.com>",
    "date": "2025-08-19T01:28:15",
    "name": "[libcamera-ci] Enable Python bindings in debug packages",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "0125b8c30c18caa84723bcc1b7c54f3e78b71c36",
    "submitter": {
        "id": 2,
        "url": "https://patchwork.libcamera.org/api/1.1/people/2/?format=api",
        "name": "Laurent Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/24163/mbox/",
    "series": [
        {
            "id": 5394,
            "url": "https://patchwork.libcamera.org/api/1.1/series/5394/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5394",
            "date": "2025-08-19T01:28:15",
            "name": "[libcamera-ci] Enable Python bindings in debug packages",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/5394/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/24163/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/24163/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>",
        "X-Original-To": "parsemail@patchwork.libcamera.org",
        "Delivered-To": "parsemail@patchwork.libcamera.org",
        "Received": [
            "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id E8178BEFBE\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 19 Aug 2025 01:28:40 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id AE6AC69266;\n\tTue, 19 Aug 2025 03:28:39 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id EC2E0613C5\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 19 Aug 2025 03:28:37 +0200 (CEST)",
            "from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi\n\t[81.175.209.231])\n\tby perceval.ideasonboard.com (Postfix) with UTF8SMTPSA id 2DE20446\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 19 Aug 2025 03:27:40 +0200 (CEST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"GdsQtnBA\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1755566860;\n\tbh=ccT9VYao9ROKPm7F8Fko1Yjl2/SKyltlJXmjG0nVJqE=;\n\th=From:To:Subject:Date:From;\n\tb=GdsQtnBAh3TW5zUbazeMQwcv1100yIC5PJ5gfvNz3TCu+/tvaGKDBfSs4HfNA9Fu8\n\tA/6CKs+B54vbnMRTPUAdsEYR+z4NWPAHhZe69UnM0LpWmYxO7JjMQxR2blqhRdbBdL\n\tsJgIpZ5zShhUx7nLw/KpcpmQFrns3pB9QJ4Azo+o=",
        "From": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Subject": "[libcamera-ci] [PATCH] Enable Python bindings in debug packages",
        "Date": "Tue, 19 Aug 2025 04:28:15 +0300",
        "Message-ID": "<20250819012815.9099-1-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.49.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "It is useful to have Python bindings in the debug packages in order to\nrun Python tests on target devices. Enable them. Set the Python\nplatlibdir option manually as the meson python module does not set it\ncorrectly when building with the /usr/local prefix.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\nThis patch depends on the \"py: Improve native and cross-compilation of\nPython bindings\" series I have justed posted\n(https://patchwork.libcamera.org/project/libcamera/list/?series=5393)\nto fix the installation path using the python.platlibdir option.\n---\n .gitlab-ci/package-libcamera.sh | 2 +-\n gitlab-ci.yml                   | 2 ++\n 2 files changed, 3 insertions(+), 1 deletion(-)\n\n\nbase-commit: d58b30ed21a5663c5c6fd19da158de01b186831e",
    "diff": "diff --git a/.gitlab-ci/package-libcamera.sh b/.gitlab-ci/package-libcamera.sh\nindex 61378a1ee665..8d90348b5030 100755\n--- a/.gitlab-ci/package-libcamera.sh\n+++ b/.gitlab-ci/package-libcamera.sh\n@@ -14,7 +14,7 @@ libcamera_package() {\n \n \tmeson install -C build --no-rebuild \\\n \t\t--destdir install \\\n-\t\t--tags bin,bin-devel,runtime\n+\t\t--tags bin,bin-devel,python-runtime,runtime\n \n \ttar -cJf libcamera-${CI_COMMIT_SHA}.tar.xz -C build/install/ .\n }\ndiff --git a/gitlab-ci.yml b/gitlab-ci.yml\nindex 57607dbfe7e4..d4a52d7859df 100644\n--- a/gitlab-ci.yml\n+++ b/gitlab-ci.yml\n@@ -284,9 +284,11 @@ build-package:debug:\n       -D b_sanitize=address,undefined\n       -D cpp_debugstl=true\n       -D force_fallback_for=['gtest']\n+      -D python.platlibdir=/usr/local/lib/python3.11/dist-packages\n       -D pipelines=['auto','virtual']\n       -D auto_features=disabled\n       -D lc-compliance=enabled\n+      -D pycamera=enabled\n       -D test=false\n       -D tracing=enabled\n   parallel:\n",
    "prefixes": [
        "libcamera-ci"
    ]
}