summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-12-05 00:24:17 +0100
committerCarl Hetherington <cth@carlh.net>2022-12-05 00:27:00 +0100
commitf29b074a156a0186bf3725ec33b2230facd7a870 (patch)
treec348f9518c9f2759fc92d1a2f515394803c6bfed
parent8d6b4e77a5fc6ac4666c460c5c354257af23891d (diff)
Fix formatting of versions in .pc files (they were being written as b'0.1.2')v0.17.5
-rw-r--r--wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/wscript b/wscript
index 4ab8f4c..7fabc25 100644
--- a/wscript
+++ b/wscript
@@ -24,8 +24,8 @@ from waflib import Context
APPNAME = 'libcxml'
-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()