~mbp/bzr/help

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-18 13:02:52 UTC
  • mfrom: (5830.3.6 i18n-msgfmt)
  • Revision ID: pqm@pqm.ubuntu.com-20110518130252-ky96qcvzt6o0zg3f
(mbp) add build_mo command to setup.py (INADA Naoki)

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
                                        'tests/ssl_certs/ca.crt',
70
70
                                        'tests/ssl_certs/server_without_pass.key',
71
71
                                        'tests/ssl_certs/server_with_pass.key',
72
 
                                        'tests/ssl_certs/server.crt'
 
72
                                        'tests/ssl_certs/server.crt',
 
73
                                        'locale/*/LC_MESSAGES/*.mo',
73
74
                                       ]},
74
75
           }
75
76
 
152
153
    Generate bzr.1.
153
154
    """
154
155
 
 
156
    sub_commands = build.sub_commands + [
 
157
            ('build_mo', lambda _: True),
 
158
            ]
 
159
 
155
160
    def run(self):
156
161
        build.run(self)
157
162
 
163
168
## Setup
164
169
########################
165
170
 
 
171
from tools.build_mo import build_mo
 
172
 
166
173
command_classes = {'install_scripts': my_install_scripts,
167
 
                   'build': bzr_build}
 
174
                   'build': bzr_build,
 
175
                   'build_mo': build_mo,
 
176
                   }
168
177
from distutils import log
169
178
from distutils.errors import CCompilerError, DistutilsPlatformError
170
179
from distutils.extension import Extension