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
#
KERNEL_ROOT_DIR=$(HOME)/Salome/Install/KERNEL_V6
+MED2HOME=/temp
ASTER_ROOT=$(HOME)/Aster/V10.3/aster
ASTER_VERSION=STA10.3
'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)
'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
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.
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"""
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',]