/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-13 02:09:37 UTC
  • mto: This revision was merged to the branch mainline in revision 2004.
  • Revision ID: john@arbash-meinel.com-20060913020937-2df2f49f9a28ec43
Update HACKING and docstrings

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'
186
188
                                     version = version_str,
187
189
                                     description = META_INFO['description'],
188
190
                                     author = META_INFO['author'],
189
 
                                     copyright = "(c) Canonical Ltd, 2005-2007",
 
191
                                     copyright = "(c) Canonical Ltd, 2005-2006",
190
192
                                     company_name = "Canonical Ltd.",
191
193
                                     comments = META_INFO['description'],
192
194
                                    )
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
 
 
205
195
    options_list = {"py2exe": {"packages": BZRLIB['packages'] +
206
 
                                           additional_packages,
 
196
                                           ['elementtree'],
207
197
                               "excludes": ["Tkinter", "medusa"],
208
198
                               "dist_dir": "win32_bzr.exe",
209
199
                              },