Salome HOME
improve last commit
authorcrouzet <nicolas.crouzet@cea.fr>
Tue, 16 Jun 2020 14:06:24 +0000 (16:06 +0200)
committercrouzet <nicolas.crouzet@cea.fr>
Tue, 16 Jun 2020 14:06:24 +0000 (16:06 +0200)
commands/compile.py

index b4a1a2b1fb27eab96a8c7023272fd1aeefc8dcb7..885223eed1cc261809fbe1b8c8820a4ba5541076 100644 (file)
@@ -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