Salome HOME
if python is present compile it first
authorcrouzet <nicolas.crouzet@cea.fr>
Mon, 15 Jun 2020 13:46:46 +0000 (15:46 +0200)
committercrouzet <nicolas.crouzet@cea.fr>
Mon, 15 Jun 2020 13:46:46 +0000 (15:46 +0200)
commands/compile.py

index 90b585861e8dd981e95872d869cc47b4ba9b8dd7..b4a1a2b1fb27eab96a8c7023272fd1aeefc8dcb7 100644 (file)
@@ -706,6 +706,12 @@ 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=[]
+    # 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:
+        sorted_product_list.append("Python")
+        sorted_nodes.remove("Python")
+
     # first loop on compile time products, we need to compile them before!
     for n in sorted_nodes:
         if n in products_list: