Fast and silent building

This commit is contained in:
Laurent Bachelier 2013-03-02 13:49:56 +01:00
commit 575658ef69

View file

@ -45,14 +45,14 @@ def find_executable(name, names):
def build_qt(): def build_qt():
print 'Building Qt applications' print 'Building Qt applications...'
make = find_executable('make', ('gmake', 'make')) make = find_executable('make', ('gmake', 'make'))
pyuic4 = find_executable('pyuic4', ('python2-pyuic4', 'pyuic4-python2.7', 'pyuic4-python2.6', 'pyuic4')) pyuic4 = find_executable('pyuic4', ('python2-pyuic4', 'pyuic4-python2.7', 'pyuic4-python2.6', 'pyuic4'))
if not pyuic4 or not make: if not pyuic4 or not make:
print >>sys.stderr, 'Install missing component(s) (see above) 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) sys.exit(1)
subprocess.check_call([make, 'all', 'PYUIC=%s%s' % (pyuic4, ' WIN32=1' if sys.platform == 'win32' else '')]) subprocess.check_call([make, '-s', '-j2', 'all', 'PYUIC=%s%s' % (pyuic4, ' WIN32=1' if sys.platform == 'win32' else '')])
class Options(object): class Options(object):