X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fenvironment.py;h=f44c13105716ade802d17f4278d30c3579a7e53e;hb=be70d7b39443578d54f380d0f1e44252d5940d18;hp=d76466b0887f1ad7ba9d6aea4622230b62dda12b;hpb=beffff03411f758a5ad139b9beee248e3a105573;p=tools%2Fsat.git diff --git a/src/environment.py b/src/environment.py index d76466b..f44c131 100644 --- a/src/environment.py +++ b/src/environment.py @@ -234,7 +234,7 @@ class SalomeEnviron: self.cfg.APPLICATION.products, self.cfg) - all_products_graph=get_dependencies_graph(all_products_infos) + all_products_graph=get_dependencies_graph(all_products_infos, self.forBuild) visited_nodes=[] sorted_nodes=[] for n in all_products_graph: @@ -246,14 +246,6 @@ class SalomeEnviron: sorted_nodes) self.sorted_product_list=sorted_nodes - # store the list of compile time products - # they should be added in build env - compile_time_products=[] - for (pname,pinfo) in all_products_infos: - if src.product.product_is_compile_time(pinfo): - compile_time_products.append(pname) - self.compile_time_products=compile_time_products - def append(self, key, value, sep=os.pathsep): """\ @@ -396,14 +388,6 @@ class SalomeEnviron: else: self.cfg.APPLICATION.environ.PRODUCT_ROOT_DIR = src.pyconf.Reference(self.cfg, src.pyconf.DOLLAR, "workdir") - # these sensitive variables are reset to avoid bad environment interactions - self.add_line(1) - self.add_comment("reset these sensitive variables to avoid bad environment interactions") - self.add_comment("comment these to lines if you wish a different behaviour") - if not src.architecture.is_windows(): - self.set("LD_LIBRARY_PATH", "") - self.set("PYTHONPATH", "") - self.add_line(1) # Set the variables defined in the "environ" section if 'environ' in self.cfg.APPLICATION: @@ -654,6 +638,12 @@ class SalomeEnviron: logger.write("licence file found for product %s : %s\n" % (pi.name, licence_file_name), 5) self.set("LICENCE_FILE", licence_file_name) + # these infos may be needed for the environment of some products + if "debug" in pi and pi.debug == "yes": + self.set("SAT_DEBUG", "1") + if "verbose" in pi and pi.verbose == "yes": + self.set("SAT_VERBOSE", "1") + if src.product.product_is_cpp(pi): # set a specific environment for cpp modules self.set_salome_minimal_product_env(pi, logger) @@ -762,11 +752,6 @@ class SalomeEnviron: self.set_a_product("Python", logger) self.set_python_libdirs() - # for a build environment, add compile time products (like cmake) - if self.forBuild : - for product in self.compile_time_products: - self.set_a_product(product, logger) - # The loop on the products for product in self.sorted_product_list: if product == "Python": @@ -797,11 +782,6 @@ class SalomeEnviron: self.set_a_product("Python", logger) self.set_python_libdirs() - # for a build environment, add compile time products (like cmake) - if self.forBuild : - for product in self.compile_time_products: - self.set_a_product(product, logger) - # set products for product in sorted_product_list: if product == "Python":