Mercurial > public > mercurial-scm > hg
comparison setup.py @ 15523:f9da84a950d0
setup: backout 8504699d1aa6
Change wasn't compatible with Python 2.x
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 17 Nov 2011 23:01:58 -0600 |
parents | d5abe76da61e |
children | 9926aab3d0b5 |
comparison
equal
deleted
inserted
replaced
15513:646759147717 | 15523:f9da84a950d0 |
---|---|
208 # global and, consequently, making a mess, now that all module imports are | 208 # global and, consequently, making a mess, now that all module imports are |
209 # global. | 209 # global. |
210 ('build_ext', build.has_ext_modules), | 210 ('build_ext', build.has_ext_modules), |
211 ] + build.sub_commands | 211 ] + build.sub_commands |
212 | 212 |
213 class hgbuildmo(Command): | 213 class hgbuildmo(build): |
214 | 214 |
215 description = "build translations (.mo files)" | 215 description = "build translations (.mo files)" |
216 | 216 |
217 def run(self): | 217 def run(self): |
218 if not find_executable('msgfmt'): | 218 if not find_executable('msgfmt'): |
237 if sys.platform != 'sunos5': | 237 if sys.platform != 'sunos5': |
238 # msgfmt on Solaris does not know about -c | 238 # msgfmt on Solaris does not know about -c |
239 cmd.append('-c') | 239 cmd.append('-c') |
240 self.mkpath(join('mercurial', modir)) | 240 self.mkpath(join('mercurial', modir)) |
241 self.make_file([pofile], mobuildfile, spawn, (cmd,)) | 241 self.make_file([pofile], mobuildfile, spawn, (cmd,)) |
242 | |
243 def initialize_options(self): | |
244 pass | |
245 | |
246 def finalize_options(self): | |
247 pass | |
248 | 242 |
249 | 243 |
250 class hgdist(Distribution): | 244 class hgdist(Distribution): |
251 pure = 0 | 245 pure = 0 |
252 | 246 |