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: Tue, 21 Jul 2015 22:17:00 +0800


On Tue, Jul 21, 2015 at 6:54 PM, Eric S. Raymond <address@hidden> wrote:

> 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

Cannot reproduce, and shouldn't be happening given that /usr/bin/env python2
calls Python 2.7.  It does here, too.

Hm.  What happens if you call gpsfake standalone? The scons check recipe
calls regress-driver .....  AHA.  Found it.  I think the bug is at line
17 of regress-driver.

# Arrange to call a gpsfake in the source directory without fuss.
if [ -z ${PYTHON} ]; then
    PYTHON="python"
fi

I bet if you change that to PYTHON="python2" things will unbreak.

Works now.  What is different between my setup and yours?

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

reply via email to

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