~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Alexander Belchenko
  • Date: 2006-08-01 18:34:08 UTC
  • mto: (1711.2.111 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1906.
  • Revision ID: bialix@ukr.net-20060801183408-5f0deb2ce1853675
setup.py: automatically grab version info from bzrlib

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 './setup.py --help' for more options
7
7
"""
8
8
 
 
9
import bzrlib
 
10
 
9
11
##
10
12
# META INFORMATION FOR SETUP
11
13
 
12
14
META_INFO = {'name':         'bzr',
13
 
             'version':      '<unknown>',
 
15
             'version':      bzrlib.__version__,
14
16
             'author':       'Canonical Ltd',
15
17
             'author_email': 'bazaar-ng@lists.ubuntu.com',
16
18
             'url':          'http://www.bazaar-vcs.org/',
145
147
## Setup
146
148
########################
147
149
 
148
 
def get_bzr_version():
149
 
    import bzrlib
150
 
    return bzrlib.__version__
151
 
 
152
 
 
153
150
if 'bdist_wininst' in sys.argv:
154
151
    import glob
155
152
    # doc files
163
160
           }
164
161
 
165
162
    ARGS.update(META_INFO)
166
 
    ARGS.update({'version': get_bzr_version()})
167
163
    ARGS.update(BZRLIB)
168
164
    
169
165
    setup(**ARGS)
219
215
           }
220
216
    
221
217
    ARGS.update(META_INFO)
222
 
    ARGS.update({'version': get_bzr_version()})
223
218
    ARGS.update(BZRLIB)
224
219
 
225
220
    setup(**ARGS)