diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-12-20 12:21:59 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-12-20 12:21:59 +0100 |
| commit | 1ecb8101795d818ae619478832a78d68aa6a4207 (patch) | |
| tree | 080c834aa1c8f5be89c384690385bab5611c2d44 /wscript | |
| parent | b6b03cfe02dcbb8f5a9ffbccbded943e47585880 (diff) | |
It's not easy to install Python 3 on Ubuntu 16.04, so work around the difference instead of blocking it.v1.8.45
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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): |
