]> SALOME platform Git repositories - tools/yacsgen.git/commitdiff
Salome HOME
Merge from V6_main (tag V6_main_20120405) BR_HXXPARA
authorcrouzet <crouzet>
Thu, 5 Apr 2012 11:42:23 +0000 (11:42 +0000)
committercrouzet <crouzet>
Thu, 5 Apr 2012 11:42:23 +0000 (11:42 +0000)
Examples/ast1/myaster/Makefile
Examples/makefile.inc
module_generator/astcompo.py
module_generator/gener.py
setup.py

index 92341c9fffff715d9fbff716a99c0d227388e7a5..bf2950d2ab9c5a4c63f171721f25302e7fcf7c71 100644 (file)
@@ -19,8 +19,6 @@
 
 include ../../makefile.inc
 
-MED2HOME=/local/cchris/pkg/med235/install
-
 ASTER_INSTALL=$(ASTER_ROOT)/$(ASTER_VERSION)
 ASTER_PUB=$(ASTER_ROOT)/public
 ASTER_OUTILS=$(ASTER_ROOT)/outils
index 7bf24a20cbc88c9e5e0ae74224f122ed620cb602..b6e84509a02d892592160f0ec738205bd4fb51c9 100644 (file)
@@ -18,6 +18,7 @@
 #
 
 KERNEL_ROOT_DIR=$(HOME)/Salome/Install/KERNEL_V6
+MED2HOME=/temp
 
 ASTER_ROOT=$(HOME)/Aster/V10.3/aster
 ASTER_VERSION=STA10.3
index 062f26a3ccd72686f95779ab67ea8671909813c8..098487b1d5aebb3975484a5ae5859a280f9920d5 100644 (file)
@@ -182,6 +182,7 @@ class ASTERComponent(Component):
                       'python%s.%s' % (sys.version_info[0], sys.version_info[1]),
                       'site-packages','salome','%s_component.py'%self.name)
     config = re.sub("Execution\/E_SUPERV.py", path, config)
+    config += "ENV_SH         | env      | -    | " + self.prerequisites + "\n"
 
     fdict["%s_config.txt" % self.name] = config
     fdict["%s_component.py" % self.name] = component.substitute(component=self.name)
@@ -214,6 +215,7 @@ class ASTERComponent(Component):
                       'python%s.%s' % (sys.version_info[0], sys.version_info[1]),
                       'site-packages','salome','%s_container.py' % self.name)
     config = re.sub("Execution\/E_SUPERV.py", path, config)
+    config += "ENV_SH         | env      | -    | " + self.prerequisites + "\n"
 
     fdict["%s_container.py" % self.name] = container
     fdict["%s_config.txt" % self.name] = config
index ff1c535184f8ea2711f0ead261850d83355ccd32..f110e35d767c4dcfe63f9e1d45d23f187693d2cd 100644 (file)
@@ -160,6 +160,9 @@ class Component(object):
   def getMakefileItems(self,gen):
     return {}
 
+  def setPrerequisites(self, prerequisites_file):
+    self.prerequisites = prerequisites_file
+
 class Service(object):
   """
    A :class:`Service` instance represents a component service with dataflow and datastream ports.
@@ -311,6 +314,8 @@ class Generator(object):
     self.aster = ""
     if self.module.gui and not self.gui:
       raise Invalid("To generate a module with GUI, you need to set the 'gui' parameter in the context dictionnary")
+    for component in self.module.components:
+      component.setPrerequisites(self.context.get("prerequisites"))
 
   def generate(self):
     """Generate a SALOME source module"""
index 74d962233db9c16b6aa96903bca1b348d7894f7d..bbba7ef80067df9649c05b2659aede4f29b45219 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@
 
 from distutils.core import setup
 setup(name='YACSGEN',
-      version='6.3.1',
+      version='6.4.0',
       author='C. Caremoli',
       packages=['module_generator'],
       scripts=['script/hxx2salome.py',]