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: Sanjeev Gupta
Subject: Re: [gpsd-dev] Ubuntu 15.10 will have python3 as default
Date: Mon, 20 Jul 2015 23:55:53 +0800


On Mon, Jul 20, 2015 at 5:24 AM, Eric S. Raymond <address@hidden> wrote:
Sanjeev Gupta <address@hidden>:
> Data points, with /usr/bin/python linked to /usr/bin/python3.4:
>
>    1. "scons" fails
>    2. "python2 /usr/bin/scons" succeeds
>    3. "python2 /usr/bin/scons check" fails (95 out of 95 errors)

If you try that again with the change I just pushed, I think you'll
find that the regression tests succeed because gpsfake now has
"#!/usr/bin/env python2".

Still fails.  My setup:

==

address@hidden:~/SRC/gpsd$ python
Python 3.4.3+ (default, Jun  2 2015, 14:09:35)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

address@hidden:~/SRC/gpsd$ python2
Python 2.7.10 (default, Jul  1 2015, 10:54:53)
[GCC 4.9.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

address@hidden:~/SRC/gpsd$ /usr/bin/env python2
Python 2.7.10 (default, Jul  1 2015, 10:54:53)
[GCC 4.9.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

address@hidden:~/SRC/gpsd$ git describe
release-3.15-30-g40f3aec

==

python2 /usr/bin/scons succeeds.
python2 /usr/bin/scons check fails with (repeatedly):

  File "/home/sanjeev/SRC/gpsd/gpsfake", line 74
    raise SystemExit, 1
                    ^
SyntaxError: invalid syntax



--
Sanjeev Gupta
+65 98551208     http://www.linkedin.com/in/ghane

reply via email to

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