|
From: | Sanjeev Gupta |
Subject: | Re: [gpsd-dev] Ubuntu 15.10 will have python3 as default |
Date: | Tue, 21 Jul 2015 22:17:00 +0800 |
> 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.
[Prev in Thread] | Current Thread | [Next in Thread] |