From 96a8117e92106194e62c29474bbcaf14cd49742b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 7 Oct 2011 17:42:55 +0200 Subject: [PATCH] dont use bzr in setup --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0f23b2f..a09c29c 100644 --- a/setup.py +++ b/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'