snapcraft building arm snaps on raspberry PI

Snapcraft building arm snaps on raspberry pi! This post will focus on wrapping a python script using snap. Its recommended that you do this on ubuntu core 18, available from the ubuntu cd image repo here

Install snapd, snapcraft and lxd

sudo apt update && sudo apt upgrade
sudo apt install snapd
sudo snap install core
sudo snap install snapcraft --classic
sudo snap install lxd
sudo usermod -a -G lxd ${USER}
lxd init (answer the questions with their defaults)
reboot (this is important)

multipass doesnt work, so you need to install lxd

Getting your Python Project Ready

to use python inside a snap, you need a working setuptools env.
https://setuptools.readthedocs.io/en/latest/userguide/quickstart.html#entry-points-and-automatic-script-creationhttps://pythonhosted.org/an_example_pypi_project/setuptools.html

Leave a Reply