~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-01-24 17:06:02 UTC
  • mfrom: (2193.4.3 miss.last-file-location)
  • Revision ID: pqm@pqm.ubuntu.com-20070124170602-5f008e922b3dd800
(bialix) 'bzr missing' show remembered location unescaped,and show
 file URL as filepath not a URL.

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@lists.canonical.com',
 
20
             'author_email': 'bazaar-ng@lists.ubuntu.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
 
102
105
        install_scripts.run(self)   # standard action
103
106
 
104
107
        if sys.platform == "win32":
124
127
            return path
125
128
 
126
129
    def _win_batch_args(self):
127
 
        from bzrlib.win32utils import winver
128
 
        if winver == 'Windows NT':
 
130
        if os.name == 'nt':
129
131
            return '%*'
130
132
        else:
131
133
            return '%1 %2 %3 %4 %5 %6 %7 %8 %9'
195
197
    if sys.version.startswith('2.4'):
196
198
        # adding elementtree package
197
199
        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
200
 
205
201
    options_list = {"py2exe": {"packages": BZRLIB['packages'] +
206
202
                                           additional_packages,