From d1d0812f5318ab2190b32ff83312ef875ddad225 Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Tue, 9 Aug 2022 10:52:56 +0100 Subject: [snap] Further fixes in snapcraft.yaml for build and run * Previous commit for dist was wrong, and required site-packages instead * sos report was unablt to run in bionic, and required python3-magic as dependancy Signed-off-by: Arif Ali --- snap/snapcraft.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'snap') diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 6d2d27f5..92b7949e 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -21,17 +21,19 @@ parts: - python3 - snapcraft - gettext + stage-packages: + - python3-magic apps: sos: environment: - PYTHONPATH: ${PYTHONPATH}:${SNAP}/lib/python3.8/dist-packages + PYTHONPATH: ${PYTHONPATH}:${SNAP}/lib/python3.8/site-packages:${SNAP}/usr/lib/python3/dist-packages command: bin/sos sosreport: environment: - PYTHONPATH: ${PYTHONPATH}:${SNAP}/lib/python3.8/dist-packages + PYTHONPATH: ${PYTHONPATH}:${SNAP}/lib/python3.8/site-packages:${SNAP}/usr/lib/python3/dist-packages command: bin/sos report sos-collector: environment: - PYTHONPATH: ${PYTHONPATH}:${SNAP}/lib/python3.8/dist-packages + PYTHONPATH: ${PYTHONPATH}:${SNAP}/lib/python3.8/site-packages:${SNAP}/usr/lib/python3/dist-packages command: bin/sos collector -- cgit