Fix reading of git tags for .pc file versioning.
authorCarl Hetherington <cth@carlh.net>
Sun, 4 Dec 2022 23:28:54 +0000 (00:28 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 4 Dec 2022 23:28:54 +0000 (00:28 +0100)
wscript

diff --git a/wscript b/wscript
index 9113ee272303abfacc7ea2eb24c64e16e8fc0ef4..ac3dbabd7bc9daa5f68ac49b73e5fbb8760cea60 100644 (file)
--- a/wscript
+++ b/wscript
@@ -40,8 +40,8 @@ from waflib import Logs, Context
 
 APPNAME = 'libdcp'
 
-this_version = subprocess.Popen(shlex.split('git tag -l --points-at HEAD'), stdout=subprocess.PIPE).communicate()[0]
-last_version = subprocess.Popen(shlex.split('git describe --tags --abbrev=0'), stdout=subprocess.PIPE).communicate()[0]
+this_version = subprocess.Popen(shlex.split('git tag -l --points-at HEAD'), stdout=subprocess.PIPE).communicate()[0].decode('UTF-8')
+last_version = subprocess.Popen(shlex.split('git describe --tags --abbrev=0'), stdout=subprocess.PIPE).communicate()[0].decode('UTF-8')
 
 if this_version == '':
     VERSION = '%sdevel' % last_version[1:].strip()