aboutsummaryrefslogtreecommitdiffstats
path: root/snap
diff options
context:
space:
mode:
authorArif Ali <arif.ali@canonical.com>2022-10-12 07:27:46 +0100
committerJake Hunsaker <jhunsake@redhat.com>2022-10-14 11:04:18 -0400
commitf202b3ad1a18d555d2affa8d61bff34627b4b79c (patch)
tree9003069bb315daef80da6e004ee2b4168cea80f6 /snap
parent5d3ebee8dd6bd348c6d1384e7147f3591400c72d (diff)
downloadsos-f202b3ad1a18d555d2affa8d61bff34627b4b79c.tar.gz
[snap] Fix python env
The python environment for core22 is python3.10. The environment needed changing accoridngly. core20 and core22 snapcraft doc suggests that python3-venv needs to be added for the python plugin to work effectivly Signed-off-by: Arif Ali <arif.ali@canonical.com>
Diffstat (limited to 'snap')
-rw-r--r--snap/snapcraft.yaml7
1 files changed, 4 insertions, 3 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 8af14486..0919e4f8 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -23,17 +23,18 @@ parts:
- gettext
stage-packages:
- python3-magic
+ - python3-venv
apps:
sos:
environment:
- PYTHONPATH: ${PYTHONPATH}:${SNAP}/lib/python3.8/site-packages:${SNAP}/usr/lib/python3/dist-packages
+ PYTHONPATH: ${PYTHONPATH}:${SNAP}/lib/python3.10/site-packages:${SNAP}/usr/lib/python3/dist-packages
command: bin/sos
sosreport:
environment:
- PYTHONPATH: ${PYTHONPATH}:${SNAP}/lib/python3.8/site-packages:${SNAP}/usr/lib/python3/dist-packages
+ PYTHONPATH: ${PYTHONPATH}:${SNAP}/lib/python3.10/site-packages:${SNAP}/usr/lib/python3/dist-packages
command: bin/sos report
sos-collector:
environment:
- PYTHONPATH: ${PYTHONPATH}:${SNAP}/lib/python3.8/site-packages:${SNAP}/usr/lib/python3/dist-packages
+ PYTHONPATH: ${PYTHONPATH}:${SNAP}/lib/python3.10/site-packages:${SNAP}/usr/lib/python3/dist-packages
command: bin/sos collector