From 684262e945f67498fb7ab460578249ed7bd11188 Mon Sep 17 00:00:00 2001 From: emccorkle Date: Thu, 26 Oct 2017 10:59:55 -0400 Subject: [PATCH] [SCons] Fix Python 3.6 compatibility The build was failing with: TypeError: 'mappingproxy' object does not support item assignment --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 00d2e82a7..32dc1967c 100644 --- a/SConstruct +++ b/SConstruct @@ -310,7 +310,7 @@ defaults.python_prefix = '$prefix' if env['OS'] != 'Windows' else '' # Transform lists into strings to keep cantera.conf clean for key,value in defaults.__dict__.items(): if isinstance(value, (list, tuple)): - defaults.__dict__[key] = ' '.join(value) + setattr(defaults, key, ' '.join(value)) # ************************************** # *** Read user-configurable options ***