From: Bobby R. Bruce Date: Mon, 28 Sep 2020 18:56:19 +0000 (-0700) Subject: scons,python: Add warning for when python3-config is not used X-Git-Tag: v20.1.0.0~7 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=81779301d8d131b50a661d64b18412a318c34023;p=gem5.git scons,python: Add warning for when python3-config is not used We cannot say for certain whether 'python-config' is python2 or python3, but this patch will produce a warning if 'python3-config' is not used, stating that support for python2 will be dropped in future releases of gem5. Change-Id: I114da359c8768071bf7dd7f2701aae85e3459678 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35256 Reviewed-by: Jason Lowe-Power Reviewed-by: Andreas Sandberg Maintainer: Jason Lowe-Power Maintainer: Andreas Sandberg Tested-by: kokoro --- diff --git a/SConstruct b/SConstruct index 667a0e647..621f923cd 100755 --- a/SConstruct +++ b/SConstruct @@ -637,6 +637,10 @@ if main['USE_PYTHON']: main['PYTHON_CONFIG']) print("Info: Using Python config: %s" % (python_config, )) + if python_config != 'python3-config': + warning('python3-config could not be found.\n' + 'Future releases of gem5 will drop support for python2.') + py_includes = readCommand([python_config, '--includes'], exception='').split() py_includes = list(filter(