From 719921a9840a990c6a95712e2d72423f1d58e016 Mon Sep 17 00:00:00 2001 From: Xiangyue Cai Date: Wed, 3 Jun 2020 22:10:34 +0800 Subject: [PATCH] use python3 (#51) --- debian/control | 10 ++++++---- debian/python-searpc.install | 2 +- debian/rules | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/debian/control b/debian/control index 3abe3e9..7f4f64a 100644 --- a/debian/control +++ b/debian/control @@ -4,10 +4,11 @@ Priority: extra Maintainer: m.eik michalke Build-Depends: debhelper (>= 7), + dh-python, autotools-dev, intltool, libglib2.0-dev, - python, + python3 (>= 3.5), libtool, libjansson-dev Standards-Version: 3.9.5 @@ -30,7 +31,7 @@ Section: libdevel Architecture: any Depends: ${misc:Depends}, - python (>= 2.7), + python3 (>= 3.5), libsearpc1 (= ${binary:Version}) Conflicts: seafile Description: Development files for the libsearpc1 package. @@ -49,9 +50,10 @@ Package: python-searpc Section: python Multi-Arch: foreign Architecture: all -Depends: ${python:Depends}, +Depends: ${python3:Depends}, ${shlibs:Depends}, - ${misc:Depends} + ${misc:Depends}, + python3-future Description: simple and easy-to-use C language RPC framework Searpc handles the serialization/deserialization part of RPC, the transport part is left to users. diff --git a/debian/python-searpc.install b/debian/python-searpc.install index f5416bf..3303507 100644 --- a/debian/python-searpc.install +++ b/debian/python-searpc.install @@ -1 +1 @@ -usr/lib/python*/dist-packages/pysearpc/*.py +usr/lib/python*/site-packages/pysearpc/*.py diff --git a/debian/rules b/debian/rules index c1274c8..d722d66 100755 --- a/debian/rules +++ b/debian/rules @@ -2,7 +2,7 @@ # -*- makefile -*- %: - dh $@ --with python2 --with autotools_dev --builddirectory=build + dh $@ --with python3 --with autotools_dev --builddirectory=build override_dh_auto_configure: ./autogen.sh