diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript index b7321bec35..4e82257935 100644 --- a/gtk2_ardour/wscript +++ b/gtk2_ardour/wscript @@ -445,7 +445,7 @@ def build(bld): obj.defines = [ 'PACKAGE="' + I18N_PACKAGE + '"', - 'VERSIONSTRING="' + bld.env['VERSION'] + '"', + 'VERSIONSTRING="' + str (bld.env['VERSION']) + '"', 'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"', 'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"', 'LOCALEDIR="' + os.path.join(os.path.normpath(bld.env['DATADIR']), 'locale') + '"', diff --git a/headless/wscript b/headless/wscript index 3548324fb1..3589ffcf7f 100644 --- a/headless/wscript +++ b/headless/wscript @@ -38,7 +38,7 @@ def build(bld): # this program does not do the whole hidden symbols thing obj.cxxflags = [ '-fvisibility=default' ] obj.source = hardour_sources - obj.target = 'hardour-' + bld.env['VERSION'] + obj.target = 'hardour-' + str (bld.env['VERSION']) obj.includes = ['.'] # at this point, "obj" refers to either the normal native executable @@ -52,7 +52,7 @@ def build(bld): ] obj.defines = [ - 'VERSIONSTRING="' + bld.env['VERSION'] + '"', + 'VERSIONSTRING="' + str(bld.env['VERSION']) + '"', 'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"', 'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"', 'LOCALEDIR="' + os.path.join(os.path.normpath(bld.env['DATADIR']), 'locale') + '"', @@ -84,7 +84,7 @@ def build(bld): 'CONFDIR' : os.path.normpath(bld.env['CONFDIR']), 'LIBS' : 'build/libs', 'VERSION' : bld.env['VERSION'], - 'EXECUTABLE' : 'build/headless/hardour-' + bld.env['VERSION'] + 'EXECUTABLE' : 'build/headless/hardour-' + str(bld.env['VERSION']) } def set_subst_dict(obj, dict): diff --git a/wscript b/wscript index f04b5613cb..a4d13aec6d 100755 --- a/wscript +++ b/wscript @@ -16,7 +16,7 @@ def fetch_git_revision (): def fetch_tarball_revision (): if not os.path.exists ('libs/ardour/revision.cc'): - print 'This tarball was not created correctly - it is missing libs/ardour/revision.cc' + print ('This tarball was not created correctly - it is missing libs/ardour/revision.cc') sys.exit (1) with open('libs/ardour/revision.cc') as f: content = f.readlines() @@ -742,9 +742,9 @@ def configure(conf): conf.env['LXVST_SUPPORT'] = False elif Options.options.dist_target == 'mingw': conf.env['LXVST_SUPPORT'] = False - else: - conf.define('LXVST_SUPPORT', 1) - conf.env['LXVST_SUPPORT'] = True + else: + conf.define('LXVST_SUPPORT', 1) + conf.env['LXVST_SUPPORT'] = True conf.env['WINDOWS_KEY'] = opts.windows_key if opts.rt_alloc_debug: conf.define('DEBUG_RT_ALLOC', 1)