]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/build/build.py
BaseTools: the list and iterator translation
[mirror_edk2.git] / BaseTools / Source / Python / build / build.py
index 139a1dfe2983fa2ff037689e3279bab012a54dab..43fc3c8077bef59145ec6cc94ea7da638808859d 100644 (file)
@@ -443,7 +443,7 @@ class BuildTask:
 \r
                 # get all pending tasks\r
                 BuildTask._PendingQueueLock.acquire()\r
-                BuildObjectList = BuildTask._PendingQueue.keys()\r
+                BuildObjectList = list(BuildTask._PendingQueue.keys())\r
                 #\r
                 # check if their dependency is resolved, and if true, move them\r
                 # into ready queue\r
@@ -791,6 +791,13 @@ class Build():
             # Print the same path style with WORKSPACE env.\r
             EdkLogger.quiet("%-16s = %s" % ("EDK_TOOLS_BIN", os.path.normcase(os.path.normpath(os.environ["EDK_TOOLS_BIN"]))))\r
         EdkLogger.quiet("%-16s = %s" % ("CONF_PATH", GlobalData.gConfDirectory))\r
+        if "PYTHON3_ENABLE" in os.environ:\r
+            PYTHON3_ENABLE = os.environ["PYTHON3_ENABLE"]\r
+            if PYTHON3_ENABLE != "TRUE":\r
+                PYTHON3_ENABLE = "FALSE"\r
+            EdkLogger.quiet("%-16s = %s" % ("PYTHON3_ENABLE", PYTHON3_ENABLE))\r
+        if "PYTHON_COMMAND" in os.environ:\r
+            EdkLogger.quiet("%-16s = %s" % ("PYTHON_COMMAND", os.environ["PYTHON_COMMAND"]))\r
         self.InitPreBuild()\r
         self.InitPostBuild()\r
         if self.Prebuild:\r