[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] Ubuntu 15.10 will have python3 as default
From: |
Eric S. Raymond |
Subject: |
Re: [gpsd-dev] Ubuntu 15.10 will have python3 as default |
Date: |
Tue, 21 Jul 2015 06:54:31 -0400 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Sanjeev Gupta <address@hidden>:
> 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.
> >>>
All this is as I would expect, and just explained to Greg Troxel.
> 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.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
Re: [gpsd-dev] Ubuntu 15.10 will have python3 as default, Eric S. Raymond, 2015/07/19