/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Jelmer Vernooij
  • Date: 2011-03-07 16:51:16 UTC
  • mfrom: (696.1.7 i18n)
  • Revision ID: jelmer@samba.org-20110307165116-0tt1ox9t59yqs2oy
MergeĀ supportĀ forĀ internationalization.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
from distutils.command.install_data import install_data
8
8
from distutils.command.build import build
9
9
from distutils.command.sdist import sdist
 
10
try:
 
11
    from DistUtilsExtra.command import *
 
12
except ImportError:
 
13
   # Python distutils extra is not available.
 
14
    class cmd_build_i18n(Command):
 
15
        def run(self):
 
16
            print >> sys.stderr, "For internationalization support you'll need to install https://launchpad.net/python-distutils-extra"
 
17
else:
 
18
    # Use build_i18n from DistUtilsExtra
 
19
    cmd_build_i18n = build_i18n.build_i18n
 
20
 
10
21
import os
11
22
import sys
12
23
 
158
169
                                             'icons/tag-16.png',
159
170
                                             'icons/bug.png',
160
171
                                             'icons/bzr-icon-64.png']),
 
172
                    # In case Python distutils extra is not available,
 
173
                    # install the .desktop files
161
174
                    ('share/applications', ['bazaar-properties.desktop',
162
175
                                            'bzr-handle-patch.desktop',
163
176
                                            'bzr-notify.desktop']),
175
188
        cmdclass={'install_data': InstallData,
176
189
                  'build_credits': CreateCredits,
177
190
                  'build': BuildData,
 
191
                  'build_i18n': cmd_build_i18n,
178
192
                  'sdist': SourceDist,
179
193
                  'check': Check}
180
194
        )