[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] Python 3 Updates
From: |
Fred Wright |
Subject: |
[gpsd-dev] Python 3 Updates |
Date: |
Fri, 8 Apr 2016 10:04:10 -0700 (PDT) |
I now have Python 3 support fully usable, though there's still some
cleanup to do (e.g. a division audit). I've been pushing commits to my
GitHub all along, but since there doesn't seem to be much interest in
pulling from there, I'll send the patches (12 so far) here.
Short-form summary (forward chronological):
MacPro:gpsd fw$ git log --oneline --reverse master...python3
7e3a674 Fixes Python C extensions for Python 3 compatibility.
c35b535 Fixes fake.py 'packet' import for Python 3.
e85b05e Forces Python 3 import behavior in all gps/* modules.
070b5f6 Fixes xgps for Python 3.
ad32677 Fixes a client.py exception for Python 3.
2a48a82 Fixes Gtk warnings related to xgps/xgpsspeed error boxes.
b0dcaa3 Changes type checks in misc.py:isotime to use isinstance().
2f81162 Removes unnecessary Unicode literal from xgps.
711fd3c Fixes gpscat and test_maidenhead.py for Python 3.
9bbfb2c Fixes fake.py and gpsfake for Python 3.
8dc7809 Adds "target Python" support to SConstruct.
c7dbc29 Removes redundant polystr/polybytes defs from client.py.
Also viewable here:
https://github.com/fhgwright/gpsd/compare/master...python3
Note that, at least in the MacPorts case, the C extensions built for 3.5
use versioned naming and hence don't work for any other version, including
3.x, while builds for other 3.x versions work with all 3.x versions.
OTOH, that makes it possible for 2.x and 3.5 extensions to coexist. None
of this matters for *installed* libraries, though, which live in a
version-specific directory in all cases.
The default behavior is still to build for the scons Python (usually 2.7
and never 3.x for now).
Fred Wright
- [gpsd-dev] Python 3 Updates,
Fred Wright <=
- [gpsd-dev] [PATCH 01/12] Fixes Python C extensions for Python 3 compatibility., Fred Wright, 2016/04/08
- [gpsd-dev] [PATCH 02/12] Fixes fake.py 'packet' import for Python 3., Fred Wright, 2016/04/08
- [gpsd-dev] [PATCH 04/12] Fixes xgps for Python 3., Fred Wright, 2016/04/08
- [gpsd-dev] [PATCH 05/12] Fixes a client.py exception for Python 3., Fred Wright, 2016/04/08
- [gpsd-dev] [PATCH 06/12] Fixes Gtk warnings related to xgps/xgpsspeed error boxes., Fred Wright, 2016/04/08
- [gpsd-dev] [PATCH 07/12] Changes type checks in misc.py:isotime to use isinstance()., Fred Wright, 2016/04/08
- [gpsd-dev] [PATCH 03/12] Forces Python 3 import behavior in all gps/* modules., Fred Wright, 2016/04/08
- [gpsd-dev] [PATCH 09/12] Fixes gpscat and test_maidenhead.py for Python 3., Fred Wright, 2016/04/08
- [gpsd-dev] [PATCH 08/12] Removes unnecessary Unicode literal from xgps., Fred Wright, 2016/04/08
- [gpsd-dev] [PATCH 10/12] Fixes fake.py and gpsfake for Python 3., Fred Wright, 2016/04/08