4 # description of the template to be displayed with option --info
9 Description: This template can be used to create a python module for SALOME.
12 # code to substitute with component name
15 # delimiter used in the template (default is ':sat:')
18 # filter of files to ignore for substitution
19 # if not defined all files will be parsed
20 ignore_filters = '*.png'
23 # a string = parameter name
24 # a tuple = (parameter name, default value, prompt, validation method)
26 #there is a problem for loading modules if user choose something else than standard "resources directory (lowercase)"
27 #so we need force standard choice...
28 # ('PYCMP_minus', "%(name)s", "resources directory (lowercase)", lambda l: l.islower() and l.replace("_","").isalnum()),
31 (file_subst, "%(NAME)s"),
32 ('PYCMPCompoName', "%(Name)s", "Name of the module (hit return!)"),
33 ('PYCMP_minus', "%(name)s", "resources directory (lowercase) (hit return!)", lambda l: l.islower() and l.replace("_","").isalnum()),
34 ("get_method", "archive", "get method for prepare", lambda l: l in ['cvs', 'git', 'archive'])
37 # configuration to use this component with sat
43 get_sources : '%(get_method)s'
44 build_sources : 'autotools'
52 archive_name : '%(NAME)s.tar.gz'
55 source_dir : $TOOLS.common.source_root + '/' + $name
56 build_dir : $TOOLS.common.build_root + '/' + $name
57 depend : [ 'Python', 'KERNEL', 'GUI' ]