Juju lxc/python3 issue on raring
Stéphane Graber
stephane.graber at canonical.com
Mon Apr 8 15:36:42 UTC 2013
On 04/08/2013 11:31 AM, Barry Warsaw wrote:
> On Apr 08, 2013, at 04:16 PM, Martin Packman wrote:
>
>> Thanks. So, all the lxc scripts should really have that added? We can
>> work around this at the juju level, but I'm not convinced that's the
>> right approach.
>
> IMO, *all* system scripts should have this, and there's been discussion within
> debian-python about getting the helpers to add this either by default, or with
> a switch. I'd have to go back and review to remember what the status of that
> is. From `python -h`:
>
> -E : ignore PYTHON* environment variables (such as PYTHONPATH)
> -s : don't add user site directory to sys.path; also PYTHONNOUSERSITE
>
> Likely, -E is the more important one for your purposes. This bit us badly
> with /usr/bin/lsb_release, and now:
>
> % head -1 /usr/bin/lsb_release
> #! /usr/bin/python3 -Es
>
> ;)
>
> -Barry
>
This sounds like a dupe of a bug I marked critical months ago:
https://bugs.launchpad.net/ubuntu/+source/juju/+bug/1130809
Can someone make sure JuJu gets fixed?
I agree with Barry that we ultimately want -Es to be set automatically
though I actually like being able to override PYTHONPATH when testing
the lxc python scripts, so for this specific bug, I'd much rather the
JuJu folks fix the actual bug than have me workaround it in LXC.
--
Stéphane Graber
Ubuntu developer
http://www.canonical.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/juju/attachments/20130408/a6c004ec/attachment-0001.pgp>
More information about the Juju
mailing list