From 978b45626f538863dd13a58cd694658d7c65bc7c Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Thu, 15 Dec 2022 13:30:02 +1300 Subject: [PATCH] include .pyc files in the snap --- snapcraft.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/snapcraft.yaml b/snapcraft.yaml index fb2c04a7..e0549c50 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -121,6 +121,14 @@ parts: - ssh-import-id - ubuntu-advantage-tools + stage: + - "*" + - "-usr/lib/python2.7/" + + override-prime: | + snapcraftctl prime + "./usr/bin/python3" -m compileall -q . + organize: bin/subiquity-tui: usr/bin/subiquity bin/subiquity-service: usr/bin/subiquity-service