buildroot: insert osbuild-library into PYTHONPATH

Prepare the PYTHONPATH of the build-root container to include the path
to the osbuild library. This way, we no longer need any symlinks or
bind-mounts for the individual modules.
This commit is contained in:
David Rheinsberg 2020-05-04 09:17:42 +02:00
parent 33844711cd
commit 3c56a3b7ac

View file

@ -116,6 +116,7 @@ class BuildRoot(contextlib.AbstractContextManager):
"--as-pid2",
"--link-journal=no",
f"--directory={self.root}",
f"--setenv=PYTHONPATH=/run/osbuild/lib",
*[f"--bind-ro={b}" for b in nspawn_ro_binds],
*[f"--bind={b}" for b in (binds or [])],
*[f"--bind-ro={b}" for b in (readonly_binds or [])],