From 7411e729e627b0d251b256797f667754b30405d3 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 5 Jul 2014 14:50:35 +0200 Subject: [PATCH] fully support python3 --- setup.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 7b59953543..59ff4869f4 100755 --- a/setup.py +++ b/setup.py @@ -39,15 +39,15 @@ def find_executable(name, names): fpath = os.path.join(path, name) + ext if os.path.exists(fpath) and os.access(fpath, os.X_OK): return fpath - print >>sys.stderr, 'Could not find executable: %s' % name + print('Could not find executable: %s' % name, file=sys.stderr) def build_qt(): - print >>sys.stderr, 'Building Qt applications...' + print('Building Qt applications...', file=sys.stderr) make = find_executable('make', ('gmake', 'make')) pyuic4 = find_executable('pyuic4', ('python2-pyuic4', 'pyuic4-python2.7', 'pyuic4-python2.6', 'pyuic4')) if not pyuic4 or not make: - print >>sys.stderr, 'Install missing component(s) (see above) or disable Qt applications (with --no-qt).' + print('Install missing component(s) (see above) or disable Qt applications (with --no-qt).', file=sys.stderr) sys.exit(1) subprocess.check_call( @@ -178,13 +178,13 @@ class Options(object): args = list(sys.argv) if '--hildon' in args and '--no-hildon' in args: - print >>sys.stderr, '--hildon and --no-hildon options are incompatible' + print('--hildon and --no-hildon options are incompatible', file=sys.stderr) sys.exit(1) if '--qt' in args and '--no-qt' in args: - print >>sys.stderr, '--qt and --no-qt options are incompatible' + print('--qt and --no-qt options are incompatible', file=sys.stderr) sys.exit(1) if '--xdg' in args and '--no-xdg' in args: - print >>sys.stderr, '--xdg and --no-xdg options are incompatible' + print('--xdg and --no-xdg options are incompatible', file=sys.stderr) sys.exit(1) if '--hildon' in args or os.environ.get('HILDON') == 'true': -- GitLab