From 77f4686d43443d08f3b1bb1bb364d24dd127c8ce Mon Sep 17 00:00:00 2001 From: kali Date: Sat, 8 Sep 2012 01:53:14 +0900 Subject: workaround for broken git version if no tag exists --- setup.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1e265cd5..47e28d53 100755 --- a/setup.py +++ b/setup.py @@ -33,10 +33,16 @@ trove_classifiers = [ "Topic :: Utilities" ] +try: + version = version.get_git_version() +except ValueError: + # workaround since that needs a tag. + version = "0.1.0" + setup( name='leap-client', package_dir={"": "src"}, - version=version.get_git_version(), + version=version, description="the internet encryption toolkit", long_description=( "Desktop Client for the LEAP Platform." -- cgit v1.2.3