I’m trying to create a snap package for Guake terminal, but have problem with adding python runtime dependencies.
With this snapcraft.yaml file:
name: guake # you probably want to 'snapcraft register ’
summary: Top-down terminal for Gnome, inspired by the terminal used in Quake
Guake is a drop-down terminal for GNOME Desktop Environment,
so you just need to press a key to invoke him, and press again to hide.
Guake supports hotkeys, tabs, background transparent, etc.
grade: devel # must be ‘stable’ to release into candidate/stable channels
confinement: devmode # use ‘strict’ once you have the right plugs and slots
package build correctly. I am able to install it, but of course I can’t run the guake as there are missing runtime dependencies (specifically, python3-gi).
Now, when I uncomment python3-gi in the above file (or any python3-* dependency), the build fails with the error:
make install DESTDIR=/root/parts/guake/install
Traceback (most recent call last):
File “scripts/find-first-site-package.py”, line 4, in
from distutils.sysconfig import get_python_lib
ModuleNotFoundError: No module named ‘distutils.sysconfig’
When I log into the vm shell with
multipass shell snapcraft-guake
I am able to run python3 and successfully import the get_python_lib.
I’m out of idea what can be wrong - it would be awesome if someone could help me understand what am I doing wrong.
I’m building package on Ubuntu 19.10
snapcraft, version 3.8