summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/setup.py b/setup.py
index 3da60f1..971c4c5 100755
--- a/setup.py
+++ b/setup.py
@@ -72,11 +72,9 @@ def get_version():
stderr=subprocess.PIPE)
result = p.communicate()[0]
if p.returncode == 0:
- return result.split()[0][1:].replace('-', '.').replace('.g', '+g')
- else:
- return '0.0.0+%s' % len(
- subprocess.check_output(
- ['git', 'rev-list', 'HEAD']).splitlines())
+ version = result.split()[0][1:]
+ version = version.replace('-', '.')
+ return version
return '0.0.0'
setuptools.setup(