~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Alexander Belchenko
  • Date: 2006-07-30 18:47:00 UTC
  • mto: (1711.2.111 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1906.
  • Revision ID: bialix@ukr.net-20060730184700-cfc979f8f530908d
setup.py: get version info from bzrlib

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
# META INFORMATION FOR SETUP
11
11
 
12
12
META_INFO = {'name':         'bzr',
13
 
             'version':      '0.9pre',
 
13
             'version':      '<unknown>',
14
14
             'author':       'Canonical Ltd',
15
15
             'author_email': 'bazaar-ng@lists.ubuntu.com',
16
16
             'url':          'http://www.bazaar-vcs.org/',
50
50
         }
51
51
 
52
52
 
53
 
##
 
53
######################################################################
54
54
# Reinvocation stolen from bzr, we need python2.4 by virtue of bzr_man
55
55
# including bzrlib.help
56
56
 
145
145
## Setup
146
146
########################
147
147
 
 
148
def get_bzr_version():
 
149
    import bzrlib
 
150
    return bzrlib.__version__
 
151
 
 
152
 
148
153
if 'bdist_wininst' in sys.argv:
149
154
    import glob
150
155
    # doc files
158
163
           }
159
164
 
160
165
    ARGS.update(META_INFO)
 
166
    ARGS.update({'version': get_bzr_version()})
161
167
    ARGS.update(BZRLIB)
162
168
    
163
169
    setup(**ARGS)
213
219
           }
214
220
    
215
221
    ARGS.update(META_INFO)
 
222
    ARGS.update({'version': get_bzr_version()})
216
223
    ARGS.update(BZRLIB)
217
224
 
218
225
    setup(**ARGS)
219