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