From c5c54d4d6486d85a151c6fcd4c5dcdaf2dfbcaf6 Mon Sep 17 00:00:00 2001 From: yvesf Date: Sat, 10 Apr 2010 10:53:59 +0000 Subject: include rev number in egg name git-svn-id: http://10.2.2.13/svn/common/ebus@1640 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- setup.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index ee95d97..ed47b66 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,20 @@ #!/usr/bin/env python +version='0.2' +try: + import pysvn + from pysvn import Client + import os + extra = Client().info(os.path.dirname(__file__)).revision.number + version = "%s-r%s" % (version,extra) +except: + pass + from setuptools import setup, find_packages setup( name='ebus', - version='0.2', + version=version, description='Ebus over TCP Library', author='xapek.org', author_email='ebus@xapek.org', -- cgit v1.2.1