Show More
@@ -186,6 +186,12 b' try:' | |||
|
186 | 186 | except ImportError: |
|
187 | 187 | version = 'unknown' |
|
188 | 188 | |
|
189 | class hgbuild(build): | |
|
190 | # Insert hgbuildmo first so that files in mercurial/locale/ are found | |
|
191 | # when build_py is run next. | |
|
192 | sub_commands = [('build_mo', None), | |
|
193 | ] + build.sub_commands | |
|
194 | ||
|
189 | 195 | class hgbuildmo(build): |
|
190 | 196 | |
|
191 | 197 | description = "build translations (.mo files)" |
@@ -217,10 +223,6 b' class hgbuildmo(build):' | |||
|
217 | 223 | self.make_file([pofile], mobuildfile, spawn, (cmd,)) |
|
218 | 224 | |
|
219 | 225 | |
|
220 | # Insert hgbuildmo first so that files in mercurial/locale/ are found | |
|
221 | # when build_py is run next. | |
|
222 | build.sub_commands.insert(0, ('build_mo', None)) | |
|
223 | ||
|
224 | 226 | class hgdist(Distribution): |
|
225 | 227 | pure = 0 |
|
226 | 228 | |
@@ -344,7 +346,8 b' class hginstallscripts(install_scripts):' | |||
|
344 | 346 | fp.write(data) |
|
345 | 347 | fp.close() |
|
346 | 348 | |
|
347 |
cmdclass = {'build |
|
|
349 | cmdclass = {'build': hgbuild, | |
|
350 | 'build_mo': hgbuildmo, | |
|
348 | 351 | 'build_ext': hgbuildext, |
|
349 | 352 | 'build_py': hgbuildpy, |
|
350 | 353 | 'build_hgextindex': buildhgextindex, |
General Comments 0
You need to be logged in to leave comments.
Login now