Merge lp:~gz/bzr/install_mo_command_941835 into lp:bzr/2.5
Status: | Work in progress |
---|---|
Proposed branch: | lp:~gz/bzr/install_mo_command_941835 |
Merge into: | lp:bzr/2.5 |
Prerequisite: | lp:~gz/bzr/run_test_setup_in_tempdir_140874 |
Diff against target: |
136 lines (+55/-13) 2 files modified
setup.py (+9/-13) tools/bzr_distutils.py (+46/-0) |
To merge this branch: | bzr merge lp:~gz/bzr/install_mo_command_941835 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jelmer Vernooij (community) | Approve | ||
Review via email: mp+99521@code.launchpad.net |
Description of the change
Adds an install_mo distutils command, and removes the current setup.py hacks related to .mo files. At the moment, .mo files will only be installed if they were built in a previous run of the script, because the code to locate them runs when setup.py loads, rather than after build_mo completes.
In addition, the bzr_distutils module is moved to tools/ as it's only needed during the setup process and isn't used by bzrlib otherwise. The idea presumably was so qbzr could share the code for it's setup.py (as it's the origin), but that's yet to happen and likely needs some more thought before it does.
The default install location is left as "share/locale" for now, but that could be changed (perhaps to something platform specific) as needed.
Unmerged revisions
- 6497. By Martin Packman
-
Reinstate line needed for windows installers
- 6496. By Martin Packman
-
Move distutils commands module to tools/ from bzrlib/
- 6495. By Martin Packman
-
Add install_mo distutils command so setup works when .mo files don't exist yes
This doesn't seem sufficient to get the .mo files somewhere usable. An added complication is that if the translations should be included with the python-based installers, they probably need a different mechanism from the all-in-one installer.
...buildout makes me cry.