[libcamera-ci] Enable Python bindings in debug packages
diff mbox series

Message ID 20250819012815.9099-1-laurent.pinchart@ideasonboard.com
State New
Headers show
Series
  • [libcamera-ci] Enable Python bindings in debug packages
Related show

Commit Message

Laurent Pinchart Aug. 19, 2025, 1:28 a.m. UTC
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 <laurent.pinchart@ideasonboard.com>
---
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

Patch
diff mbox series

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: