Comment 12 for bug 1669306

Revision history for this message
Sergio Schvezov (sergiusens) wrote : Re: [Bug 1669306] Python snaps now failing with snapcraft 2.27.1

On Tue, 7 Mar 2017 16:40:06 +0000, Stuart Bishop wrote:
> The apps section of prime/meta/snap.yaml does not mention python3 at
> all:
>
> apps:
> juju-act:
> command: command-juju-act.wrapper
>
>
> Setting the command in snapcraft.yaml per above fails to build:
>
> [Errno 2] No such file or directory: '/home/stub/src/juju-
> act/prime/$SNAP/usr/bin/python3'

> If I set command: to '/usr/bin/python3 $SNAP/bin/juju-act', the
> built snap works fine as expected. The resulting wrapper is
> calling the correct python3 (although there is a double // that
> might be a worry):
>
> #!/bin/sh
> exec "$SNAP//usr/bin/python3" $SNAP/bin/juju-act "$@"

Silly me, you can either do `usr/bin/python3 $SNAP/bin/juju-act` or `/usr/bin/env $SNAP/usr/bin/python3 $SNAP/bin/juju-act`.

I'll look into making this experience a better one.

--
Sent using Dekko from my Ubuntu device