dont use bzr revno in setup
This commit is contained in:
parent
35a82dae28
commit
18a72b7e81
1 changed files with 5 additions and 1 deletions
6
setup.py
6
setup.py
|
@ -8,7 +8,11 @@ except:
|
|||
|
||||
def get_bzr_version():
|
||||
import os
|
||||
rev = int(os.popen('bzr revno').read())
|
||||
info = os.path.join(os.path.dirname(__file__), '.bzr/branch/last-revision')
|
||||
if os.path.exists(info):
|
||||
f = open(info)
|
||||
rev = int(f.read().split()[0])
|
||||
f.close()
|
||||
if rev:
|
||||
return u'%s' % rev
|
||||
return u'unknown'
|
||||
|
|
Loading…
Reference in a new issue