summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)