diff --git a/debian/changelog b/debian/changelog index c8806d8..f68e0ed 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,6 +9,8 @@ ubuntu-dev-tools (0.172) UNRELEASED; urgency=medium setup.py doesn't provide these) and ubuntu-dev-tools itself. * dh_python2 doesn't generate a python dependency in ubuntu-dev-tools, now that it's scripts-only, so manually declare one. + * Install pull-debian-source as python 3. It was ported, and doesn't work + under python 2 any more. (LP: #1841127) -- Mattia Rizzolo Fri, 23 Aug 2019 10:07:40 +0200 diff --git a/debian/control b/debian/control index e69083a..0dcfcd8 100644 --- a/debian/control +++ b/debian/control @@ -62,6 +62,9 @@ Depends: python-launchpadlib (>= 1.5.7), python-lazr.restfulclient, python-ubuntutools, + python3, + python3-distro-info, + python3-ubuntutools, sensible-utils, sudo, ${misc:Depends}, diff --git a/setup.py b/setup.py index 851d331..2136738 100755 --- a/setup.py +++ b/setup.py @@ -16,7 +16,9 @@ if os.path.exists(changelog): version = match.group(1) if sys.version_info[0] >= 3: - scripts = [] + scripts = [ + 'pull-debian-source', + ] data_files = [] else: scripts = [ @@ -35,7 +37,6 @@ else: 'pbuilder-dist', 'pbuilder-dist-simple', 'pull-debian-debdiff', - 'pull-debian-source', 'pull-lp-source', 'pull-revu-source', 'pull-uca-source',