I’m attempting to create a Python snap for the raspian OS. Is this possible?
Here is the command I’m running:
$snapcraft --debug --target-arch armhf --destructive-mode
Setting target machine to 'armhf'
The plugin used by 'my-project' does not support cross-compiling to a different target architecture.
I’m using destructive-mode
because I’m running Ubuntu 18.04 in a virtual box on a Mac and when I try running snapcraft on the mac, it tries to spin up a mutlipass which ignores the target-arch
flag. If I build and deploy an amd64
project, it will not install on the raspbian OS.
Here is the snapcraft.yaml
file:
$cat snapcraft.yaml
name: my-project
version: 0.2.0
confinement: strict
grade: stable
base: core18
architectures: [armhf, arm64]
parts:
my-project:
plugin: python
source: .
stage-packages:
- python-six
apps:
my-project:
daemon: simple
command: python3 live