easybuild.framework.easyconfig.templates module

Easyconfig templates module that provides templating that can be used within an Easyconfig file.

author:Stijn De Weirdt (Ghent University)
author:Fotis Georgatos (Uni.Lu, NTUA)
author:Kenneth Hoste (Ghent University)
easybuild.framework.easyconfig.templates.template_constant_dict(config, ignore=None, skip_lower=None, toolchain=None)

Create a dict for templating the values in the easyconfigs. - config is a dict with the structure of EasyConfig._config


Generate the templating documentation

easybuild.framework.easyconfig.templates.to_template_str(key, value, templ_const, templ_val)

Insert template values where possible

  • key – name of easyconfig parameter
  • value – string representing easyconfig parameter value
  • templ_const – dictionary of template strings (constants)
  • templ_val – (ordered) dictionary of template strings specific for this easyconfig file