From patchwork Tue Aug 19 01:28:15 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 24163 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id E8178BEFBE for ; Tue, 19 Aug 2025 01:28:40 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id AE6AC69266; Tue, 19 Aug 2025 03:28:39 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="GdsQtnBA"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id EC2E0613C5 for ; Tue, 19 Aug 2025 03:28:37 +0200 (CEST) Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with UTF8SMTPSA id 2DE20446 for ; Tue, 19 Aug 2025 03:27:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1755566860; bh=ccT9VYao9ROKPm7F8Fko1Yjl2/SKyltlJXmjG0nVJqE=; h=From:To:Subject:Date:From; b=GdsQtnBAh3TW5zUbazeMQwcv1100yIC5PJ5gfvNz3TCu+/tvaGKDBfSs4HfNA9Fu8 A/6CKs+B54vbnMRTPUAdsEYR+z4NWPAHhZe69UnM0LpWmYxO7JjMQxR2blqhRdbBdL sJgIpZ5zShhUx7nLw/KpcpmQFrns3pB9QJ4Azo+o= From: Laurent Pinchart 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 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" It is useful to have Python bindings in the debug packages in order to run Python tests on target devices. Enable them. Set the Python platlibdir option manually as the meson python module does not set it correctly when building with the /usr/local prefix. Signed-off-by: Laurent Pinchart --- This patch depends on the "py: Improve native and cross-compilation of Python bindings" series I have justed posted (https://patchwork.libcamera.org/project/libcamera/list/?series=5393) to fix the installation path using the python.platlibdir option. --- .gitlab-ci/package-libcamera.sh | 2 +- gitlab-ci.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) base-commit: d58b30ed21a5663c5c6fd19da158de01b186831e diff --git a/.gitlab-ci/package-libcamera.sh b/.gitlab-ci/package-libcamera.sh index 61378a1ee665..8d90348b5030 100755 --- a/.gitlab-ci/package-libcamera.sh +++ b/.gitlab-ci/package-libcamera.sh @@ -14,7 +14,7 @@ libcamera_package() { meson install -C build --no-rebuild \ --destdir install \ - --tags bin,bin-devel,runtime + --tags bin,bin-devel,python-runtime,runtime tar -cJf libcamera-${CI_COMMIT_SHA}.tar.xz -C build/install/ . } diff --git a/gitlab-ci.yml b/gitlab-ci.yml index 57607dbfe7e4..d4a52d7859df 100644 --- a/gitlab-ci.yml +++ b/gitlab-ci.yml @@ -284,9 +284,11 @@ build-package:debug: -D b_sanitize=address,undefined -D cpp_debugstl=true -D force_fallback_for=['gtest'] + -D python.platlibdir=/usr/local/lib/python3.11/dist-packages -D pipelines=['auto','virtual'] -D auto_features=disabled -D lc-compliance=enabled + -D pycamera=enabled -D test=false -D tracing=enabled parallel: