Mercurial > p > roundup > code
diff roundup/dist/command/build.py @ 4516:85dfe17c182e
Installation:
Fixed an issue that prevented to use EasyInstall and a Python
egg. Thanks to Satchidanand Haridas for the patch and John Kristensen
for testing it.
| author | Bernhard Reiter <Bernhard.Reiter@intevation.de> |
|---|---|
| date | Fri, 08 Jul 2011 15:28:00 +0000 |
| parents | d4cd0a264098 |
| children | 64b05e24dbd8 |
line wrap: on
line diff
--- a/roundup/dist/command/build.py Fri Jul 01 15:17:32 2011 +0000 +++ b/roundup/dist/command/build.py Fri Jul 08 15:28:00 2011 +0000 @@ -42,19 +42,19 @@ n-len(err), n) print 'Missing:', '\nMissing: '.join(err) +def build_message_files(command): + """For each locale/*.po, build .mo file in target locale directory""" + for (_src, _dst) in list_message_files(): + _build_dst = os.path.join("build", _dst) + command.mkpath(os.path.dirname(_build_dst)) + command.announce("Compiling %s -> %s" % (_src, _build_dst)) + msgfmt.make(_src, _build_dst) + class build(base): - def build_message_files(self): - """For each locale/*.po, build .mo file in target locale directory""" - for (_src, _dst) in list_message_files(): - _build_dst = os.path.join("build", _dst) - self.mkpath(os.path.dirname(_build_dst)) - self.announce("Compiling %s -> %s" % (_src, _build_dst)) - msgfmt.make(_src, _build_dst) - def run(self): check_manifest() - self.build_message_files() + build_message_files(self) base.run(self)
