From: crouzet Date: Tue, 16 Jun 2020 14:06:24 +0000 (+0200) Subject: improve last commit X-Git-Tag: 5.6.0~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=23823cb5c42f5e9deb165ff016df4ccb5a25ad06;p=tools%2Fsat.git improve last commit --- diff --git a/commands/compile.py b/commands/compile.py index b4a1a2b..885223e 100644 --- a/commands/compile.py +++ b/commands/compile.py @@ -706,21 +706,21 @@ def run(args, runner, logger): # Use the sorted list of all products to sort the list of products we have to compile sorted_product_list=[] + sorted_product_list_runtime=[] # python has no dependencies. it is sometimes required by compile time products. #it's simplier to always compile python first! - if "Python" in sorted_nodes: + if "Python" in products_list: sorted_product_list.append("Python") sorted_nodes.remove("Python") - # first loop on compile time products, we need to compile them before! + # store at beginning compile time products, we need to compile them before! for n in sorted_nodes: if n in products_list: if src.product.product_is_compile_time(all_products_dict[n][1]): sorted_product_list.append(n) - for n in sorted_nodes: - if n in products_list: - if not src.product.product_is_compile_time(all_products_dict[n][1]): - sorted_product_list.append(n) + else: + sorted_product_list_runtime.append(n) + sorted_product_list+=sorted_product_list_runtime logger.write("Sorted list of products to compile : %s\n" % sorted_product_list, 5) # from the sorted list of products to compile, build a sorted list of products infos