From: Paul Brossier Date: Thu, 23 Mar 2017 15:55:13 +0000 (+0100) Subject: this_version.py: always return a string, not unicode X-Git-Tag: 0.4.5~45^2~13 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=35f995c72975795fa312a6b20c645346cb68c6d5 this_version.py: always return a string, not unicode --- diff --git a/this_version.py b/this_version.py index 14a1a712..d84abecc 100644 --- a/this_version.py +++ b/this_version.py @@ -70,7 +70,7 @@ def get_aubio_version(add_status=True): verstr = '%s.%s.%s' % get_aubio_version_tuple() if add_status and vdict['AUBIO_VERSION_STATUS']: verstr += vdict['AUBIO_VERSION_STATUS'] - return verstr + return str(verstr) def get_aubio_pyversion(add_status=True): diff --git a/wscript b/wscript index 92f32afd..823d908d 100644 --- a/wscript +++ b/wscript @@ -425,7 +425,7 @@ def txt2man(bld): from waflib import TaskGen if 'MANDIR' not in bld.env: bld.env['MANDIR'] = bld.env['DATAROOTDIR'] + '/man' - bld.env.VERSION = str(VERSION) + bld.env.VERSION = VERSION rule_str = '${TXT2MAN} -t `basename ${TGT} | cut -f 1 -d . | tr a-z A-Z`' rule_str += ' -r ${PACKAGE}\\ ${VERSION} -P ${PACKAGE}' rule_str += ' -v ${PACKAGE}\\ User\\\'s\\ manual' @@ -456,7 +456,7 @@ def sphinx(bld): # build documentation from source files using sphinx-build # note: build in ../doc/_build/html, otherwise waf wont install unsigned files if bld.env['SPHINX']: - bld.env.VERSION = str(VERSION) + bld.env.VERSION = VERSION bld( name = 'sphinx', rule = '${SPHINX} -b html -D release=${VERSION} -D version=${VERSION} -a -q `dirname ${SRC}` `dirname ${TGT}`', source = 'doc/conf.py',