Fix formatting of versions in .pc files (they were being written as b'0.1.2') v0.17.5
authorCarl Hetherington <cth@carlh.net>
Sun, 4 Dec 2022 23:24:17 +0000 (00:24 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 4 Dec 2022 23:27:00 +0000 (00:27 +0100)
wscript

diff --git a/wscript b/wscript
index 4ab8f4c8b1449dcafc665cd55c83c4abc1073b2e..7fabc25f827c40a90ae0b121da5ad78da79c0e13 100644 (file)
--- 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()