# 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