Take version from git tag

This commit is contained in:
Lars Immisch
2015-05-11 22:13:02 +02:00
parent a83979a71e
commit 526bd05eaf
3 changed files with 10 additions and 6 deletions
+7 -1
View File
@@ -4,11 +4,17 @@
It is fairly complete for PCM devices and Mixer access.
'''
import subprocess
from distutils.core import setup
from distutils.extension import Extension
from sys import version
pyalsa_version = '0.8'
def gitrev():
rev = subprocess.check_output(['git', 'describe', '--tags', '--dirty=-dev',
'--always'])
return rev.decode('utf-8').strip()
pyalsa_version = gitrev()
# patch distutils if it's too old to cope with the "classifiers" or
# "download_url" keywords