summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/wscript b/wscript
index fc9a5bbe..54b96563 100644
--- a/wscript
+++ b/wscript
@@ -34,7 +34,6 @@
import subprocess
import os
import sys
-assert sys.version_info.major == 3
import shlex
import distutils.spawn
from waflib import Logs, Context
@@ -49,6 +48,10 @@ if this_version == '':
else:
VERSION = this_version[1:].strip()
+if sys.version_info.major == 2:
+ # Handle Python 2 (for Ubuntu 16.04)
+ VERSION = VERSION.encode('UTF-8')
+
API_VERSION = '-1.0'
def options(opt):