From: Bobby R. Bruce Date: Wed, 6 May 2020 00:13:51 +0000 (-0700) Subject: scons: Added 'python3-config' to the config list X-Git-Tag: v20.0.0.0~34 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=de944f8a832ebdd55b03b42f72a329abb53ef98e;p=gem5.git scons: Added 'python3-config' to the config list Previously scons looked for 'python-config' and 'python2-config'. This caused an error in Python3-exclusive environments. With only python3 installed, 'python3-config' is now an option. With this setup, 'python2-config' is used by default, unless overridden by the user via the scons command line. Change-Id: I11186328b0eb0825cc53c3889b31a5345a7f40d1 Issue-on: https://gem5.atlassian.net/browse/GEM5-275 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28648 Reviewed-by: Giacomo Travaglini Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/SConstruct b/SConstruct index b7608a8b2..0a18c3d00 100755 --- a/SConstruct +++ b/SConstruct @@ -277,7 +277,7 @@ global_vars.AddVariables( ('CCFLAGS_EXTRA', 'Extra C and C++ compiler flags', ''), ('LDFLAGS_EXTRA', 'Extra linker flags', ''), ('PYTHON_CONFIG', 'Python config binary to use', - [ 'python2.7-config', 'python-config' ]), + [ 'python2.7-config', 'python-config', 'python3-config' ]), ('PROTOC', 'protoc tool', environ.get('PROTOC', 'protoc')), ('BATCH', 'Use batch pool for build and tests', False), ('BATCH_CMD', 'Batch pool submission command name', 'qdo'),