fix setup

This commit is contained in:
j 2016-02-18 19:56:24 +05:30
parent a3be13e0d5
commit 791029be58

View file

@ -9,9 +9,7 @@ except:
def get_version(): def get_version():
import subprocess import subprocess
rev = subprocess.check_output(['git', 'rev-list', 'HEAD', '--count']).strip() rev = subprocess.check_output(['git', 'rev-list', 'HEAD', '--count']).strip()
if rev: return rev or u'unknown'
return u'0.%s' % rev
return u'unknown'
setup(name='oxtimelines', setup(name='oxtimelines',
version='0.%s' % get_version() , version='0.%s' % get_version() ,