I have a snapcraft that uses python3 as a plug.
When I do a clean on a single part and then attempt a build I’m getting an error:
snapcraft
Skipping pull tomcat-with-ssl (already ran)
'orion-monitor-webapp' has prerequisites that need to be staged: tomcat-with-ssl
Preparing to build tomcat-with-ssl
Building tomcat-with-ssl
Unable to find python3, searched: /home/bsutton/git/orionmonitor/snap-projects/installer/stage:/home/bsutton/git/orionmonitor/snap-projects/installer/parts/tomcat-with-ssl/install
However as you can see python3 is installed on the host:
sudo apt install python3
[sudo] password for bsutton:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3 is already the newest version (3.5.1-3).
The error only occurs when I clean a single part. If I do a full clean the project builds fine.
name: orion-monitor # you probably want to 'snapcraft register <name>'
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: monitoring of orion vms.
description: |
OrionMonitor is a webapp designed to monitor Orion Vms and stop/start them
when they are not required.
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
apps:
tomcat:
command: tomcat-launch
daemon: simple
plugs: [network, network-bind]
# used to ran the certbot renewal process.
cron:
command: cron
daemon: simple
plugs: [network, network-bind]
# You must run getcert after the install to create the certificate.
getcert:
command: getcert
plugs: [network, network-bind]
parts:
# build the web app
orion-monitor-webapp:
plugin: maven
source: git@bitbucket.org:sbsutton/orionmonitor.git
maven-options:
[-DskipTests=true]
organize:
war/orionmonitor-1.0-SNAPSHOT.war : webapps/orionmonitor.war
after: [tomcat-with-ssl]
tomcat-with-ssl:
plugin: python
source: https://github.com/bsutton/tomcat-with-ssl-snap
source-type: git