Skip to content

Commit ad46c1d

Browse files
Bernhard ReiterBernhard Reiter
authored andcommitted
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.
1 parent 6c773df commit ad46c1d

File tree

4 files changed

+23
-9
lines changed

4 files changed

+23
-9
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Features:
1515

1616
Fixed:
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)

roundup/dist/command/build.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@ def check_manifest():
4242
n-len(err), n)
4343
print 'Missing:', '\nMissing: '.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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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)

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from roundup.dist.command.build_py import build_py
2424
from roundup.dist.command.build import build, list_message_files
2525
from roundup.dist.command.bdist_rpm import bdist_rpm
26+
from roundup.dist.command.install_lib import install_lib
2627
from distutils.core import setup
2728

2829
import 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,

0 commit comments

Comments
 (0)