summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-12-05 00:35:38 +0100
committerCarl Hetherington <cth@carlh.net>2022-12-05 00:35:38 +0100
commit6fc54ae23ffaa521c2ccc873c5f63014e51f2997 (patch)
tree34896ec6be89f9989cbed3b3e26a711d930e5c52
parent032e484a267da1262803297a96f23420f01a65c8 (diff)
Fix format of versions in .pc files.v1.6.42
-rw-r--r--wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/wscript b/wscript
index ee5e19b..06e2660 100644
--- 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()