summaryrefslogtreecommitdiff
path: root/src/py
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2022-05-18 16:13:14 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-05-18 17:52:28 +0300
commit4de9539f514f297c5c244308b95ee022943ee90a (patch)
tree1d649afb59cc7026a51e63fd05b20ac32e2e364b /src/py
parent1d72eca34775b96be79aa4527afb3ad0b44f728e (diff)
py: Add comment about the symlinks
Add comment about the symlinks to clarify the purpose. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/py')
-rw-r--r--src/py/libcamera/meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/py/libcamera/meson.build b/src/py/libcamera/meson.build
index 3c0828b8..427716d7 100644
--- a/src/py/libcamera/meson.build
+++ b/src/py/libcamera/meson.build
@@ -54,6 +54,9 @@ pycamera = shared_module('_libcamera',
dependencies : pycamera_deps,
cpp_args : pycamera_args)
+# Create symlinks from the build dir to the source dir so that we can use the
+# Python module directly from the build dir.
+
run_command('ln', '-fsT', files('__init__.py'),
meson.current_build_dir() / '__init__.py',
check: true)