summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-07-06 10:05:49 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-07-06 10:06:06 -0400
commit1e169ea3e8cad35db3ea533b2fb69e31478f00c2 (patch)
tree15f883ec2aa244f708c19b1177db32df4820fe19 /wscript
parentd26a57d377813c5887ff601978b3415a74d64490 (diff)
fix wscripts to work with python3.
encode/decode return byte arrays in python3, not strings
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 5 insertions, 3 deletions
diff --git a/wscript b/wscript
index cb01228be9..7d806858a0 100644
--- a/wscript
+++ b/wscript
@@ -180,9 +180,11 @@ else:
V = MAJOR + '.' + MINOR + '.' + MICRO
# Ensure that these are not unicode, which
-# can cause odd problems elsewhere
-VERSION = V.encode ('ascii', 'ignore')
-PROGRAM_VERSION = MAJOR.encode ('ascii', 'ignore')
+# can cause odd problems elsewhere. Note that
+# in python3, encode and decode do not return
+# strings, so we have to force the type.
+VERSION = str (V.encode ('ascii', 'ignore'))
+PROGRAM_VERSION = str (MAJOR.encode ('ascii', 'ignore'))
# Mandatory variables
top = '.'