~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: INADA Naoki
  • Date: 2011-05-05 12:53:46 UTC
  • mto: This revision was merged to the branch mainline in revision 5891.
  • Revision ID: songofacandy@gmail.com-20110505125346-glducdbkzy4cw45x
Add build_mo command to setup. It makes .mo files into bzrlib/<lang>/LC_MESSAGES/bzr.mo
The mo files is installed as a bzrlib's package_data.

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
 
163
164
## Setup
164
165
########################
165
166
 
 
167
from tools.build_mo import build_mo
 
168
 
166
169
command_classes = {'install_scripts': my_install_scripts,
167
 
                   'build': bzr_build}
 
170
                   'build': bzr_build,
 
171
                   'build_mo': build_mo,
 
172
                   }
168
173
from distutils import log
169
174
from distutils.errors import CCompilerError, DistutilsPlatformError
170
175
from distutils.extension import Extension