dont use bzr in setup

This commit is contained in:
j 2011-10-07 17:42:55 +02:00
parent a7aba40790
commit 96a8117e92

View file

@ -8,7 +8,11 @@ except:
def get_bzr_version(): def get_bzr_version():
import os 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: if rev:
return u'%s' % rev return u'%s' % rev
return u'unknown' return u'unknown'