Creating a pygame snap for armhf architecture

I need to make a snap that uses pygame. I can create the snap and everything works fine for an amd64 architecture.

However, when I try to build the snap for armhf, the build fails to get the pygame package.

From what I have found, I see that pygame supports armhf so maybe I am missing something with the snap process.

I have attached the simple yaml file that I am testing:

name: pygame-demo version: ‘0.0.1’ summary: Demo of using frame buffer from snappy

description: | PyGame bouncing ball on a snappy package base: core18 confinement: devmode

parts: pygame-demo: plugin: python python-version: python3 source: . python-packages: [pygame]

apps: pygame-demo: command: bin/pygame

Thank u in advance :slight_smile:

I am using snapcraft remote build.

With option --build-on=amd64, the pygame relevant logs:
Collecting pygame

Downloading pygame-1.9.6-cp36-cp36m-manylinux1_x86_64.whl (11.4 MB)
Saved ./parts/pygame-demo/python-packages/pygame-1.9.6-cp36-cp36m-manylinux1_x86_64.whl
Successfully downloaded pygame

With option --build-on=amdhf, the pygame relevant logs:

Collecting pygame
Downloading pygame-1.9.6.tar.gz (3.2 MB)
ERROR: Command errored out with exit status 1:
command: /build/snapcraft-pygame-demo-d96aea/parts/pygame-demo/install/usr/bin/python3 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-download-bj97awy_/pygame/setup.py’"’"’; file=’"’"’/tmp/pip-download-bj97awy_/pygame/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base /tmp/pip-pip-egg-info-02nehgnk
cwd: /tmp/pip-download-bj97awy_/pygame/
Complete output (20 lines):

WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using UNIX configuration...

/bin/sh: 1: sdl-config: not found
/bin/sh: 1: sdl-config: not found
/bin/sh: 1: sdl-config: not found
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: freetype-config: not found
/bin/sh: 1: freetype-config: not found
/bin/sh: 1: freetype-config: not found

Hunting dependencies...
WARNING: "sdl-config" failed!
WARNING: "pkg-config freetype2" failed!
WARNING: "freetype-config" failed!
Unable to run "sdl-config". Please make sure a development version of SDL is installed.