~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-02-27 22:08:46 UTC
  • mfrom: (2227.4.1 bzr.78026)
  • Revision ID: pqm@pqm.ubuntu.com-20070227220846-8cce3b2986915092
CapitalizeĀ rocksĀ output

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
META_INFO = {'name':         'bzr',
18
18
             'version':      bzrlib.__version__,
19
19
             'author':       'Canonical Ltd',
20
 
             'author_email': 'bazaar-ng@lists.ubuntu.com',
 
20
             'author_email': 'bazaar@lists.canonical.com',
21
21
             'url':          'http://www.bazaar-vcs.org/',
22
22
             'description':  'Friendly distributed version control system',
23
23
             'license':      'GNU GPL v2',
99
99
    Create bzr.bat for win32.
100
100
    """
101
101
    def run(self):
102
 
        import os
103
 
        import sys
104
 
 
105
102
        install_scripts.run(self)   # standard action
106
103
 
107
104
        if sys.platform == "win32":
127
124
            return path
128
125
 
129
126
    def _win_batch_args(self):
130
 
        if os.name == 'nt':
 
127
        from bzrlib.win32utils import winver
 
128
        if winver == 'Windows NT':
131
129
            return '%*'
132
130
        else:
133
131
            return '%1 %2 %3 %4 %5 %6 %7 %8 %9'
188
186
                                     version = version_str,
189
187
                                     description = META_INFO['description'],
190
188
                                     author = META_INFO['author'],
191
 
                                     copyright = "(c) Canonical Ltd, 2005-2006",
 
189
                                     copyright = "(c) Canonical Ltd, 2005-2007",
192
190
                                     company_name = "Canonical Ltd.",
193
191
                                     comments = META_INFO['description'],
194
192
                                    )
 
193
 
 
194
    additional_packages =  []
 
195
    if sys.version.startswith('2.4'):
 
196
        # adding elementtree package
 
197
        additional_packages.append('elementtree')
 
198
    elif sys.version.startswith('2.5'):
 
199
        additional_packages.append('xml.etree')
 
200
    else:
 
201
        import warnings
 
202
        warnings.warn('Unknown Python version.\n'
 
203
                      'Please check setup.py script for compatibility.')
 
204
 
195
205
    options_list = {"py2exe": {"packages": BZRLIB['packages'] +
196
 
                                           ['elementtree'],
 
206
                                           additional_packages,
197
207
                               "excludes": ["Tkinter", "medusa"],
198
208
                               "dist_dir": "win32_bzr.exe",
199
209
                              },