Skip to content

Commit

Permalink
We can get the version from git for pip installs. Fixes #3
Browse files Browse the repository at this point in the history
Maybe we should tag from setup.py instead
  • Loading branch information
larsimmisch committed May 16, 2015
1 parent 0fb8b1d commit 5cbc886
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Version 0.8.2:
- fix #3 (we cannot get the revision from git for pip installs)

Version 0.8.1:
- document changes (this file)

Expand Down
8 changes: 1 addition & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,11 @@
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

def gitrev():
rev = subprocess.check_output(['git', 'describe', '--tags', '--dirty=-dev',
'--always'])
return rev.decode('utf-8').strip()

pyalsa_version = gitrev()
pyalsa_version = '0.8.2'

# patch distutils if it's too old to cope with the "classifiers" or
# "download_url" keywords
Expand Down

0 comments on commit 5cbc886

Please sign in to comment.