From ff0896440b56e1ba44a7ad88f5abc469dc211760 Mon Sep 17 00:00:00 2001 From: "Bryan W. Weber" Date: Fri, 10 Dec 2021 22:19:25 -0500 Subject: [PATCH] [SCons] Fix AttributeError when generating license Older versions of SCons do not support dictionary value-types. Instead, these must be explicitly cast to lists so that SCons can process all the files. Fixes Attribute error during build #1147 --- ext/SConscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/SConscript b/ext/SConscript index e66f7e3c17..ac27d47deb 100644 --- a/ext/SConscript +++ b/ext/SConscript @@ -167,12 +167,12 @@ def generate_license(target, source, env): localenv["license_files"] = license_files -license = build(localenv.Command("LICENSE.txt", license_files.values(), +license = build(localenv.Command("LICENSE.txt", list(license_files.values()), generate_license)) env["license_target"] = license install('$inst_docdir', license) if env['OS'] == 'Windows': # RTF version is required for Windows installer - build(localenv.Command("LICENSE.rtf", license_files.values(), + build(localenv.Command("LICENSE.rtf", list(license_files.values()), generate_license))