scons: Test if binaries can embed the Python interpreter
authorAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 21 Oct 2020 16:41:56 +0000 (17:41 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 23 Oct 2020 16:00:13 +0000 (16:00 +0000)
commitbc2e12321a21f026b10e29e2e8a254c335970398
tree59a8ca03ff20419334655ebb4b63a19bcc19f4c7
parent74005aa8d6f7273939c925176f914e038397982e
scons: Test if binaries can embed the Python interpreter

Add some more stringent Python tests that ensure that we can link with
and run applications that embed Python. This is implemented by running
building a small c++ program that embeds Python using PyBind11. The
program is run by the build system and prints the version of the
Python interpreter. The version information is then used by the build
system to ensure that the installed version is supported.

Change-Id: I727e0832f171362f5506247c022bea365068a0f6
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36383
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
SConstruct