summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-08-23 00:00:19 +0200
committerRobin Gareus <robin@gareus.org>2015-08-23 00:00:19 +0200
commit0fd984595782bef22724b43d3c82bf0de67b82e1 (patch)
tree5c34cacac5356e96aeb51a6c9b037a42e1bdf5a0 /wscript
parentea0e4a01ca0cd22a3efe596a5879dfc30d3ff187 (diff)
more python2/3 compat
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 2 insertions, 7 deletions
diff --git a/wscript b/wscript
index 38a61a7652..3e39d76b3c 100644
--- a/wscript
+++ b/wscript
@@ -183,13 +183,8 @@ V = MAJOR + '.' + MINOR + '.' + MICRO
# 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'))
-
-# It seems, that on msys2, with python3, it puts quotes around
-# the version number, which breaks the build.
-VERSION = VERSION.replace('\'', '')
-PROGRAM_VERSION = PROGRAM_VERSION.replace('\'', '')
+VERSION = V.encode ('ascii', 'ignore').decode ("utf-8")
+PROGRAM_VERSION = MAJOR.encode ('ascii', 'ignore').decode ("utf-8")
if len (sys.argv) > 1 and sys.argv[1] == 'dist':
if not 'APPNAME' in os.environ: