|
16 | 16 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
17 | 17 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
18 | 18 | # |
19 | | -# $Id: setup.py,v 1.77.2.3 2005-02-28 03:13:41 richard Exp $ |
| 19 | +# $Id: setup.py,v 1.77.2.4 2005-03-01 14:39:00 a1s Exp $ |
20 | 20 |
|
21 | 21 | from distutils.core import setup, Extension |
22 | 22 | from distutils.util import get_platform |
|
33 | 33 | DistributionMetadata.classifiers = None |
34 | 34 | DistributionMetadata.download_url = None |
35 | 35 |
|
| 36 | +from roundup import msgfmt |
36 | 37 |
|
37 | 38 | ############################################################################# |
38 | 39 | ### Build script files |
@@ -191,7 +192,7 @@ def scriptname(path): |
191 | 192 |
|
192 | 193 | ### Build Roundup |
193 | 194 |
|
194 | | -def list_message_files(suffix=".mo"): |
| 195 | +def list_message_files(suffix=".po"): |
195 | 196 | """Return list of all found message files and their intallation paths""" |
196 | 197 | _files = glob("locale/*" + suffix) |
197 | 198 | _list = [] |
@@ -242,11 +243,12 @@ def find_modules(self): |
242 | 243 | class build_roundup(build): |
243 | 244 |
|
244 | 245 | def build_message_files(self): |
245 | | - """Copy all .mo files to their locale directories""" |
| 246 | + """For each locale/*.po, build .mo file in targen locale directory""" |
246 | 247 | for (_src, _dst) in list_message_files(): |
247 | 248 | _build_dst = os.path.join("build", _dst) |
248 | 249 | self.mkpath(os.path.dirname(_build_dst)) |
249 | | - self.copy_file(_src, _build_dst) |
| 250 | + self.announce("Compiling %s -> %s" % (_src, _build_dst)) |
| 251 | + msgfmt.make(_src, _build_dst) |
250 | 252 |
|
251 | 253 | def run(self): |
252 | 254 | check_manifest() |
@@ -315,7 +317,7 @@ def main(): |
315 | 317 | 'description': "A simple-to-use and -install issue-tracking system" |
316 | 318 | " with command-line, web and e-mail interfaces. Highly" |
317 | 319 | " customisable.", |
318 | | - 'long_description': |
| 320 | + 'long_description': |
319 | 321 | '''Roundup is a simple-to-use and -install issue-tracking system with |
320 | 322 | command-line, web and e-mail interfaces. It is based on the winning design |
321 | 323 | from Ka-Ping Yee in the Software Carpentry "Track" design competition. |
|
0 commit comments