Browse Source

Remove python2 support.

Building both python versions got impossible since recent python3
versions use a new picke version and scons stores its state in a pickle
file...
tags/debian/3.19-2_bpo10+1
Bernd Zeimetz 1 year ago
parent
commit
bbf652ee9f
2 changed files with 7 additions and 29 deletions
  1. +5
    -22
      debian/control.in
  2. +2
    -7
      debian/rules

+ 5
- 22
debian/control.in View File

@@ -4,14 +4,14 @@ Priority: optional
Maintainer: Bernd Zeimetz <bzed@debian.org>
Build-Depends: debhelper (>= 11),
po-debconf,
python-all-dev (>= 2.6.6-3),
python-all-dbg (>= 2.6.6-3),
python3-all-dev (>= 2.6.6-3),
python3-all-dbg (>= 2.6.6-3),
python3-all-dev,
python-cairo-dev,
python3-cairo-dev,
python-serial,
python3-cairo-dev,
python3-serial,
python3-serial,
python-gi,
python3-gi,
python3-gi,
xsltproc, docbook-xsl, docbook-xml,
libncurses-dev,
@@ -86,23 +86,6 @@ Description: Global Positioning System - clients
This package contains auxiliary tools and example clients for monitoring,
testing, latency-profiling, device configuration and simulating gpsd.

Package: python-gps
Architecture: any
Section: python
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends},
python (>= 2.6) | python-simplejson
Recommends: gpsd
Provides: ${python:Provides}
Breaks: ${python:Breaks}, gpsd-clients (<<3.18.1-1)
Conflicts: python-json
Description: Global Positioning System - Python 2 libraries
The gpsd service daemon can monitor one or more GPS devices connected to
a host computer, making all data on the location and movements of the
sensors available to be queried on TCP port 2947.
.
This package contains a Python 2 interface to connect to gpsd, together with
a module providing a controlled testing environment.

Package: python3-gps
Architecture: any
Section: python


+ 2
- 7
debian/rules View File

@@ -13,7 +13,7 @@ LIBGPS_DEBIAN_FILE_SOURCES := $(strip $(shell ls -1 debian/*LIBGPSSONAME* ))
LIBGPS_DEBIAN_FILE_TARGETS := $(strip $(shell echo $(LIBGPS_DEBIAN_FILE_SOURCES) | sed 's,LIBGPSSONAME,$(LIBGPS_SONAME),g'))

#python versions
PYTHONS := $(shell pyversions -r) $(shell py3versions -r)
PYTHONS := $(shell py3versions -r)
PYTHON3 := $(shell py3versions -d)

#debhelper version and settings needed for udev
@@ -115,7 +115,7 @@ ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
# disable tests on hurd due to weird ipv6 errors
# http://deb.li/4C46AEAC.7040906@bzed.de
ifeq (,$(findstring hurd,$(DEB_HOST_ARCH_OS)))
-$(SCONS_ENV) /usr/bin/scons check
-$(SCONS_ENV) $(PYTHON3) /usr/bin/scons check
endif
endif
# ensure the test tools are built
@@ -211,12 +211,7 @@ binary: install-stamp
dh_installinit --no-start
dh_installsystemd -pgpsd --restart-after-upgrade
dh_installexamples
chmod 755 debian/$(PACKAGE_PY)/usr/lib/python2*/*-packages/gps/gps.py
chmod 755 debian/$(PACKAGE_PY3)/usr/lib/python3*/*-packages/gps/gps.py
dh_python2 -Ngpsd -Ngpsd-clients -Ngpsd-dbg
dh_python2 -pgpsd-dbg usr/lib/gpsd/debug
dh_python2 -pgpsd-clients usr/bin
dh_python2 -pgpsd lib/udev/
dh_python3 -Ngpsd -Ngpsd-clients -Ngpsd-dbg
dh_python3 -pgpsd-dbg usr/lib/gpsd/debug
dh_python3 -pgpsd-clients usr/bin


Loading…
Cancel
Save