Fix format of versions in .pc files.
authorCarl Hetherington <cth@carlh.net>
Sun, 4 Dec 2022 23:35:38 +0000 (00:35 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 10 Feb 2023 14:23:16 +0000 (15:23 +0100)
wscript

diff --git a/wscript b/wscript
index ee5e19bc67822ac1c902a4df90d9646a5ff7c845..06e2660aa8c6a97391ffb51117392ce0f7a0dd87 100644 (file)
--- a/wscript
+++ b/wscript
@@ -23,8 +23,8 @@ from waflib import Context
 
 APPNAME = 'libsub'
 
-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()