comparison roundup/dist/command/build.py @ 5450:f2fade4552c5

replaced msgfmt.py with latest version supporting Python 3 fixed setup scripts for Python 3
author Christof Meerwald <cmeerw@cmeerw.org>
date Sat, 21 Jul 2018 16:29:20 +0100
parents 64b05e24dbd8
children 42bf0a707763
comparison
equal deleted inserted replaced
5449:ddf1cf299ebc 5450:f2fade4552c5
47 """For each locale/*.po, build .mo file in target locale directory""" 47 """For each locale/*.po, build .mo file in target locale directory"""
48 for (_src, _dst) in list_message_files(): 48 for (_src, _dst) in list_message_files():
49 _build_dst = os.path.join("build", _dst) 49 _build_dst = os.path.join("build", _dst)
50 command.mkpath(os.path.dirname(_build_dst)) 50 command.mkpath(os.path.dirname(_build_dst))
51 command.announce("Compiling %s -> %s" % (_src, _build_dst)) 51 command.announce("Compiling %s -> %s" % (_src, _build_dst))
52 msgfmt.make(_src, _build_dst) 52 mo = msgfmt.Msgfmt(_src).get()
53 open(_build_dst, 'wb').write(mo)
53 54
54 55
55 class build(base): 56 class build(base):
56 57
57 def run(self): 58 def run(self):

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