Python install hook working under both trusty and xenial
John Meinel
john at arbash-meinel.com
Mon Jun 6 13:39:57 UTC 2016
I think the question is whether it is available by default. Not whether it
could be installed. But as mentioned, if the answer is a short bash script
that ensures "apt-get install python3" and then everything else in Python3
that sounds like an answer.
John
=:->
On Mon, Jun 6, 2016 at 3:55 PM, Marco Ceppi <marco.ceppi at canonical.com>
wrote:
> Python 3 does exist in Trusty, what cloud are you using?
>
> Marco
>
> On Mon, Jun 6, 2016, 5:41 AM Bilal Baqar <bbaqar at plumgrid.com> wrote:
>
>> You can have a install hook in bash calls a install.real hook which is in
>> python. Something like this
>> <https://github.com/openstack/charm-neutron-api/blob/master/hooks/install>.
>> See if this solves anything for you.
>>
>> On Fri, Jun 3, 2016 at 8:14 PM, Junien Fridrick <
>> junien.fridrick at canonical.com> wrote:
>>
>>> 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 !
>>>
>>> --
>>> Juju mailing list
>>> Juju at lists.ubuntu.com
>>> Modify settings or unsubscribe at:
>>> https://lists.ubuntu.com/mailman/listinfo/juju
>>>
>>
>>
>>
>> --
>> Bilal Baqar
>> MTS - PLUMgrid Inc.
>>
>>
>> --
>> Juju mailing list
>> Juju at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/juju
>>
>
> --
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20160606/508f5f1e/attachment.html>
More information about the Juju
mailing list