From 53b4cd7178b70d5385d6dc05f52aae8d7fdff074 Mon Sep 17 00:00:00 2001 From: Adrien Kunysz Date: Sun, 4 Nov 2012 14:06:32 +0000 Subject: [PATCH] setup.py: be less confusing when make is missing When make is missing, setup.py prints a message suggesting to install PyQt4-devel even if it already is. This change with the help of 6788c11a6d63824862d340f82da9de46ef63ee60 makes the message more helpful. Before: $ python setup.py Building Qt applications Install PyQt4-devel or disable Qt applications (with --no-qt). After: $ python setup.py Building Qt applications Could not find executable: make Install missing component(s) (see above) or disable Qt applications (with --no-qt). Signed-off-by: Adrien Kunysz Signed-off-by: Romain Bignon --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 40a3196f..098a5f8b 100755 --- a/setup.py +++ b/setup.py @@ -49,7 +49,7 @@ def build_qt(): make = find_executable('make', ('gmake', 'make')) pyuic4 = find_executable('pyuic4', ('python2-pyuic4', 'pyuic4-2.7', 'pyuic4-2.6', 'pyuic4-2.5', 'pyuic4')) if not pyuic4 or not make: - print >>sys.stderr, 'Install PyQt4-devel or disable Qt applications (with --no-qt).' + print >>sys.stderr, 'Install missing component(s) (see above) or disable Qt applications (with --no-qt).' sys.exit(1) subprocess.check_call([make, '-C', 'weboob/applications/qboobmsg/ui', 'PYUIC=%s' % pyuic4])