~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Aaron Bentley
  • Date: 2007-02-07 03:09:58 UTC
  • mfrom: (2268 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2269.
  • Revision ID: aaron.bentley@utoronto.ca-20070207030958-fx6ykp7rg7zma6xu
Merge bzr.dev

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'
197
195
    if sys.version.startswith('2.4'):
198
196
        # adding elementtree package
199
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.')
200
204
 
201
205
    options_list = {"py2exe": {"packages": BZRLIB['packages'] +
202
206
                                           additional_packages,