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 <adrien@kunysz.be> Signed-off-by: Romain Bignon <romain@symlink.me>
This commit is contained in:
parent
24119de001
commit
53b4cd7178
1 changed files with 1 additions and 1 deletions
2
setup.py
2
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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue