From fd2d74007bfae2bcc6da47457189ed9b7cdd106d Mon Sep 17 00:00:00 2001 From: Zhijux Fan Date: Tue, 25 Dec 2018 16:04:28 +0800 Subject: [PATCH] BaseTools:Update build tool to print python version information print PYTHON3_ENABLE and PYTHON_COMMAND in build tool Cc: Bob Feng Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan Tested-by: Laszlo Ersek Tested-by: Ard Biesheuvel Reviewed-by: Liming Gao Reviewed-by: Bob Feng --- BaseTools/Source/Python/build/build.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py index 139a1dfe29..b5b969e876 100644 --- a/BaseTools/Source/Python/build/build.py +++ b/BaseTools/Source/Python/build/build.py @@ -791,6 +791,12 @@ class Build(): # Print the same path style with WORKSPACE env. EdkLogger.quiet("%-16s = %s" % ("EDK_TOOLS_BIN", os.path.normcase(os.path.normpath(os.environ["EDK_TOOLS_BIN"])))) EdkLogger.quiet("%-16s = %s" % ("CONF_PATH", GlobalData.gConfDirectory)) + if "PYTHON3_ENABLE" in os.environ: + PYTHON3_ENABLE = os.environ["PYTHON3_ENABLE"] + if PYTHON3_ENABLE != "TRUE": + PYTHON3_ENABLE = "FALSE" + EdkLogger.quiet("%-16s = %s" % ("PYTHON3_ENABLE", PYTHON3_ENABLE)) + EdkLogger.quiet("%-16s = %s" % ("PYTHON", os.environ["PYTHON"])) self.InitPreBuild() self.InitPostBuild() if self.Prebuild: