diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-01-17 20:01:13 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-01-17 20:01:13 +0000 |
| commit | 825931899c781c0b8ab21b0a22121428e24e458a (patch) | |
| tree | 33940354d40e9dabdb9512ff60fa0b10d9fb8fcd | |
| parent | 06ab922276c2aaa443f48793e29265d308b52830 (diff) | |
Re-fix python3 wscript problem.
| -rw-r--r-- | src/wscript | 4 | ||||
| -rw-r--r-- | wscript | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/wscript b/src/wscript index 08c9bd7..638a89d 100644 --- a/src/wscript +++ b/src/wscript @@ -3,9 +3,7 @@ def configure(conf): # Don't include the micro version number in PACKAGE_VERSION, as # this ends up in MXFs and screws up DCP-o-matic's test references # every time it changes - print(conf.env.VERSION) - s = conf.env.VERSION.split(b'.') - print(s) + s = conf.env.VERSION.split('.') major_minor = '%s.%s.0' % (s[0], s[1]) conf.env.append_value('CXXFLAGS', '-DPACKAGE_VERSION="%s"' % major_minor) if conf.options.target_windows: @@ -8,8 +8,8 @@ from waflib import Logs APPNAME = 'libasdcp-cth' if os.path.exists('.git'): - 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() else: |
