# 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:
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: