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_mo and build_qt not to inherit build class

They do no cooperation with the superclass.

Changeset 6ce3e4aaa5a6

Parent 33f47cdf23a9

by Yuya Nishihara

Changes to one file · Browse files at 6ce3e4aaa5a6 Showing diff from parent 33f47cdf23a9 Diff from another changeset...

Change 1 of 3 Show Entire File setup.py Stacked
 
11
12
13
14
 
15
16
17
 
19
20
21
22
 
23
24
 
 
 
 
 
 
 
25
26
27
 
48
49
50
51
 
 
 
 
 
 
 
 
 
52
53
54
 
11
12
13
 
14
15
16
17
 
19
20
21
 
22
23
24
25
26
27
28
29
30
31
32
33
34
 
55
56
57
 
58
59
60
61
62
63
64
65
66
67
68
69
@@ -11,7 +11,7 @@
 import sys  import os  import subprocess -from distutils.core import setup +from distutils.core import setup, Command  from distutils.command.build import build  from distutils.spawn import spawn, find_executable  from os.path import isdir, exists, join, walk, splitext @@ -19,9 +19,16 @@
 thgcopyright = 'Copyright (C) 2010 Steve Borho and others'  hgcopyright = 'Copyright (C) 2005-2010 Matt Mackall and others'   -class build_mo(build): +class build_mo(Command):     description = "build translations (.mo files)" + user_options = [] + + def initialize_options(self): + pass + + def finalize_options(self): + pass     def run(self):   if not find_executable('msgfmt'): @@ -48,7 +55,15 @@
  self.mkpath(modir)   self.make_file([pofile], mofile, spawn, (cmd,))   -class build_qt(build): +class build_qt(Command): + user_options = [] + + def initialize_options(self): + pass + + def finalize_options(self): + pass +   def compile_ui(self, ui_file, py_file=None):   # Search for pyuic4 in python bin dir, then in the $Path.   if py_file is None: