Hello,
I am trying to use latest snapcraft (v3.5) to build a python3 snap with base set to core18.Building with multipass
is failing for me (refer Unable to use `build-environment`) Hence I am using export SNAPCRAFT_BUILD_ENVIRONMENT=host
to build directly on the host.
The build fails during stage of the python part with the error Failed to fetch stage packages: Error downloading packages for part 'my-python-part': The package 'python3-distutils' was not found..
.
Has anyone come across this issue before and what is the solution.
My host is Ubuntu 16.04.6 LTS
snapcraft.yaml snippet
name: mysnap
base: core18
environment:
LANG: C.UTF-8
LC_ALL: C.UTF-8
parts:
my-python-part:
build-environment:
- PIP_NO_BINARY: numpy,pandas
plugin: python
source: mypackage
requirements: [requirements.txt]
build-packages:
- libxslt1-dev
- libxml2-dev
stage:
- -tests