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

setup: inherit build command for customize

Changeset 14273bbe723a

Parent 3914185155e2

by Yuya Nishihara

Changes to one file · Browse files at 14273bbe723a Showing diff from parent 3914185155e2 Diff from another changeset...

Change 1 of 2 Show Entire File setup.py Stacked
 
13
14
15
16
 
17
18
19
 
106
107
108
109
110
111
 
 
 
 
 
112
113
 
114
115
116
 
13
14
15
 
16
17
18
19
 
106
107
108
 
 
 
109
110
111
112
113
114
115
116
117
118
119
@@ -13,7 +13,7 @@
 import subprocess  from distutils import log  from distutils.core import setup, Command -from distutils.command.build import build +from distutils.command.build import build as _build_orig  from distutils.dep_util import newer  from distutils.spawn import spawn, find_executable  from os.path import isdir, exists, join, walk, splitext @@ -106,11 +106,14 @@
  elif filename.endswith('.qrc'):   self.compile_rc(join(dirpath, filename))   - -build.sub_commands.insert(0, ('build_qt', None)) -build.sub_commands.append(('build_mo', None)) +class build(_build_orig): + sub_commands = [ + ('build_qt', None), + ('build_mo', None), + ] + _build_orig.sub_commands    cmdclass = { + 'build': build,   'build_qt': build_qt ,   'build_mo': build_mo ,   }