Python install hook working under both trusty and xenial

Junien Fridrick junien.fridrick at canonical.com
Fri Jun 3 15:14:45 UTC 2016


Hi,

I have a trusty charm with an install hook in python. The code works for
both python2 and python3.

Is there a way to keep the install hook in python and have the charm
work under both trusty and xenial ?

The issue lies at the shebang : python3 doesn't exist by default on
trusty, and python doesn't exist by default on xenial.

I know I can make a diversion and use a shell script to work around
that, but I'd like to avoid this.

Is it possible ?

Thanks !



More information about the Juju mailing list