Show More
@@ -186,6 +186,12 b' try:' | |||||
186 | except ImportError: |
|
186 | except ImportError: | |
187 | version = 'unknown' |
|
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 | class hgbuildmo(build): |
|
195 | class hgbuildmo(build): | |
190 |
|
196 | |||
191 | description = "build translations (.mo files)" |
|
197 | description = "build translations (.mo files)" | |
@@ -217,10 +223,6 b' class hgbuildmo(build):' | |||||
217 | self.make_file([pofile], mobuildfile, spawn, (cmd,)) |
|
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 | class hgdist(Distribution): |
|
226 | class hgdist(Distribution): | |
225 | pure = 0 |
|
227 | pure = 0 | |
226 |
|
228 | |||
@@ -344,7 +346,8 b' class hginstallscripts(install_scripts):' | |||||
344 | fp.write(data) |
|
346 | fp.write(data) | |
345 | fp.close() |
|
347 | fp.close() | |
346 |
|
348 | |||
347 |
cmdclass = {'build |
|
349 | cmdclass = {'build': hgbuild, | |
|
350 | 'build_mo': hgbuildmo, | |||
348 | 'build_ext': hgbuildext, |
|
351 | 'build_ext': hgbuildext, | |
349 | 'build_py': hgbuildpy, |
|
352 | 'build_py': hgbuildpy, | |
350 | 'build_hgextindex': buildhgextindex, |
|
353 | 'build_hgextindex': buildhgextindex, |
General Comments 0
You need to be logged in to leave comments.
Login now