[elbe-devel] [PATCH 19/25] py3: setup.py - convert to use python3
Manuel Traut
manuel.traut at linutronix.de
Mon Dec 18 14:47:47 CET 2017
On Mon, Dec 11, 2017 at 10:11:13AM +0100, Manuel Traut wrote:
> setup.py just needs to use print as function, than it can be run in a
> python3 interpreter.
and this is needed by debhelper:
[..]
dh clean --with systemd --buildsystem=pybuild --with python2,python3
r] Failed in branch amd64-buster
dh_testdir -O--buildsystem=pybuild
dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:184: python2.7 setup.py clean
running clean
removing '/home/jenkins/workspace/elbe-ci_master-GR3Z27HXOEGCLBRIZJ26LAS7Z5D6A3IGOIJJKIZKSYAUUYZJSUYQ at 4/elbe/.pybuild/pythonX.Y_2.7/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
I: pybuild base:184: python3.5 setup.py clean
File "setup.py", line 38
print output
[..]
> Signed-off-by: Manuel Traut <manut at linutronix.de>
> ---
> setup.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/setup.py b/setup.py
> index 63bf330f..2f42c9a3 100644
> --- a/setup.py
> +++ b/setup.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python
> +#!/usr/bin/env python3
>
> import subprocess
> import os
> @@ -35,7 +35,7 @@ class my_install(install):
> stdout=subprocess.PIPE,
> cwd=docs_dir,
> env=envvars).communicate()[0]
> - print output
> + print(output)
>
> setup(name='elbe',
> version=elbe_version,
> --
> 2.15.1
>
More information about the elbe-devel
mailing list