gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] Ubuntu 15.10 will have python3 as default


From: Greg Troxel
Subject: Re: [gpsd-dev] Ubuntu 15.10 will have python3 as default
Date: Sun, 19 Jul 2015 17:58:47 -0400
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.5 (berkeley-unix)

"Eric S. Raymond" <address@hidden> writes:

> I'm aware of the problem.  It can't be solved by trying to jump to Python 3
> eveywhere, because the fundamental problem is that "#!/usr/bin/env python"
> can now mean two different things.  Getting it right for some systems will
> imply getting it wrong for others.

Indeed.  Using other than a fully-qualifed path is unsound.

> I think the only recourse we have is to start using "#!/usr/bin/env python2"
> and hope that all our targets have python2 links.  If it turns out some
> don't, there's a really grotty hack we could pull making a local python2
> link to a system-dependent Python location.

The proper thing to do is to find and bind to a particular path at
configure time, and thus have #!/path/to/pythonX.Y and no env.

> I just tested; this works for Ubuntu.  I'll check in the change that does
>
>   replace '#!/usr/bin/env python' '#!/usr/bin/env python2'
>
> and we'll just have to see what breaks.  There isn't going to be any
> elegant solution to this one.

It breaks on pkgsrc, which has no python2, just like it has no bare
python.

Attachment: pgpsH0ChMDakQ.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]