comparison 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
comparison
equal deleted inserted replaced
4515:6467fd9a3afd 4516:85dfe17c182e
40 n = len(manifest) 40 n = len(manifest)
41 print '\n*** SOURCE WARNING: There are files missing (%d/%d found)!'%( 41 print '\n*** SOURCE WARNING: There are files missing (%d/%d found)!'%(
42 n-len(err), n) 42 n-len(err), n)
43 print 'Missing:', '\nMissing: '.join(err) 43 print 'Missing:', '\nMissing: '.join(err)
44 44
45 def build_message_files(command):
46 """For each locale/*.po, build .mo file in target locale directory"""
47 for (_src, _dst) in list_message_files():
48 _build_dst = os.path.join("build", _dst)
49 command.mkpath(os.path.dirname(_build_dst))
50 command.announce("Compiling %s -> %s" % (_src, _build_dst))
51 msgfmt.make(_src, _build_dst)
52
45 53
46 class build(base): 54 class build(base):
47 55
48 def build_message_files(self):
49 """For each locale/*.po, build .mo file in target locale directory"""
50 for (_src, _dst) in list_message_files():
51 _build_dst = os.path.join("build", _dst)
52 self.mkpath(os.path.dirname(_build_dst))
53 self.announce("Compiling %s -> %s" % (_src, _build_dst))
54 msgfmt.make(_src, _build_dst)
55
56 def run(self): 56 def run(self):
57 check_manifest() 57 check_manifest()
58 self.build_message_files() 58 build_message_files(self)
59 base.run(self) 59 base.run(self)
60 60

Roundup Issue Tracker: http://roundup-tracker.org/