File tree Expand file tree Collapse file tree 4 files changed +23
-9
lines changed
Expand file tree Collapse file tree 4 files changed +23
-9
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ Features:
1515
1616Fixed:
1717
18+ - Installation: Fixed an issue that prevented to use EasyInstall
19+ and a Python egg. Thanks to Satchidanand Haridas for the patch and
20+ John Kristensen for testing it. (Bernhard Reiter)
1821- The PostgreSQL backend quotes database names now for CREATE and DROP,
1922 enabling more exotic tracker names. Closes issue2550497.
2023 Thanks to Sebastian Harl for providing the patch. (Bernhard Reiter)
Original file line number Diff line number Diff line change @@ -42,19 +42,19 @@ def check_manifest():
4242 n - len (err ), n )
4343 print 'Missing:' , '\n Missing: ' .join (err )
4444
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 )
4552
46- class build (base ):
4753
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 )
54+ class build (base ):
5555
5656 def run (self ):
5757 check_manifest ()
58- self . build_message_files ()
58+ build_message_files (self )
5959 base .run (self )
6060
Original file line number Diff line number Diff line change 1+ from roundup .dist .command .build import build_message_files , check_manifest
2+ from distutils .command .install_lib import install_lib as base
3+
4+ class install_lib (base ):
5+
6+ def run (self ):
7+ check_manifest ()
8+ build_message_files (self )
9+ base .run (self )
Original file line number Diff line number Diff line change 2323from roundup .dist .command .build_py import build_py
2424from roundup .dist .command .build import build , list_message_files
2525from roundup .dist .command .bdist_rpm import bdist_rpm
26+ from roundup .dist .command .install_lib import install_lib
2627from distutils .core import setup
2728
2829import sys , os
@@ -140,6 +141,7 @@ def main():
140141 'build_py' : build_py ,
141142 'build' : build ,
142143 'bdist_rpm' : bdist_rpm ,
144+ 'install_lib' : install_lib ,
143145 },
144146 packages = packages ,
145147 py_modules = py_modules ,
You can’t perform that action at this time.
0 commit comments