Juju lxc/python3 issue on raring

Barry Warsaw barry at ubuntu.com
Mon Apr 8 15:31:43 UTC 2013


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/juju/attachments/20130408/229ffdbe/attachment.pgp>


More information about the Juju mailing list