fix setup
This commit is contained in:
parent
a3be13e0d5
commit
791029be58
1 changed files with 1 additions and 3 deletions
4
setup.py
4
setup.py
|
@ -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() ,
|
||||||
|
|
Loading…
Reference in a new issue