From 5cbc88607d0e6da054d5c0c1a762ceaf18f1c78d Mon Sep 17 00:00:00 2001 From: Lars Immisch Date: Sat, 16 May 2015 13:44:50 +0200 Subject: [PATCH] We can get the version from git for pip installs. Fixes #3 Maybe we should tag from setup.py instead --- CHANGES | 3 +++ setup.py | 8 +------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/CHANGES b/CHANGES index c551322..672c323 100644 --- a/CHANGES +++ b/CHANGES @@ -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) diff --git a/setup.py b/setup.py index 9e73f8e..9693115 100755 --- a/setup.py +++ b/setup.py @@ -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