Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

setup: make build_ui use self.warn and log.info instead of print

Changeset 02ababb180db

Parent bcf7534c6b45

by Yuya Nishihara

Changes to one file · Browse files at 02ababb180db Showing diff from parent bcf7534c6b45 Diff from another changeset...

Change 1 of 3 Show Entire File setup.py Stacked
 
11
12
13
 
14
15
16
 
79
80
81
82
 
83
84
 
85
86
87
 
91
92
93
94
 
 
95
96
97
 
11
12
13
14
15
16
17
 
80
81
82
 
83
84
 
85
86
87
88
 
92
93
94
 
95
96
97
98
99
@@ -11,6 +11,7 @@
 import sys  import os  import subprocess +from distutils import log  from distutils.core import setup, Command  from distutils.command.build import build  from distutils.dep_util import newer @@ -79,9 +80,9 @@
  fp = open(py_file, 'w')   uic.compileUi(ui_file, fp)   fp.close() - print "compiled", ui_file, "into", py_file + log.info('compiled %s into %s' % (ui_file, py_file))   except Exception, e: - print 'Unable to compile user interface', e + self.warn('Unable to compile user interface %s' % e)   return     def compile_rc(self, qrc_file, py_file=None): @@ -91,7 +92,8 @@
  if not(self.force or newer(qrc_file, py_file)):   return   if os.system('pyrcc4 "%s" -o "%s"' % (qrc_file, py_file)) > 0: - print "Unable to generate python module for resource file", qrc_file + self.warn("Unable to generate python module for resource file %s" + % qrc_file)     def run(self):   for dirpath, _, filenames in os.walk(join('tortoisehg', 'hgqt')):