easybuild.tools.options module

Command line options for eb

author:Stijn De Weirdt (Ghent University)
author:Dries Verdegem (Ghent University)
author:Kenneth Hoste (Ghent University)
author:Pieter De Baets (Ghent University)
author:Jens Timmerman (Ghent University)
author:Toon Willems (Ghent University)
author:Ward Poelmans (Ghent University)
author:Damian Alvarez (Forschungszentrum Juelich GmbH)
class easybuild.tools.options.EasyBuildOptions(*args, **kwargs)

Bases: vsc.utils.generaloption.GeneralOption

Easybuild generaloption class

ALLOPTSMANDATORY = False
CONFIGFILES_RAISE_MISSING = True
DEFAULT_CONFIGFILES = []
DEFAULT_LOGLEVEL = 'INFO'
VERSION = 'This is EasyBuild 3.4.1 (framework: 3.4.1, easyblocks: 3.4.1) on host build-6190030-project-19188-easybuild.'
avail_list(name, items)

Show list of available values passed by argument.

avail_repositories()

Show list of known repository types.

basic_options()

basic runtime options

config_options()
easyblock_options()
easyconfig_options()
github_options()

GitHub integration configuration options.

informative_options()
job_options()

Option related to –job.

override_options()
package_options()
postprocess()

Do some postprocessing, in particular print stuff

regtest_options()

Regression test configuration options.

show_config()

Show specified EasyBuild configuration, relative to default EasyBuild configuration.

show_default_configfiles()

Show list of default config files.

show_default_moduleclasses()

Show list of default moduleclasses and description.

software_options()
unittest_options()
validate()

Additional validation of options

easybuild.tools.options.cleanup_and_exit(tmpdir)

Clean up temporary directory and exit.

Parameters:tmpdir – path to temporary directory to clean up
easybuild.tools.options.eb_shell_quote(token)

Wrap provided token in single quotes (to escape space and characters with special meaning in a shell), so it can be used in a shell command. This results in token that is not expanded/interpolated by the shell.

easybuild.tools.options.parse_external_modules_metadata(cfgs)

Parse metadata for external modules.

Parameters:cfgs – list of config files providing metadata for external modules
Returns:parsed metadata for external modules
easybuild.tools.options.parse_options(args=None, with_include=True)

wrapper function for option parsing

easybuild.tools.options.pretty_print_opts(opts_dict)

Pretty print options dict.

Parameters:opts_dict – dictionary with option names as keys, and (value, location) tuples as values
easybuild.tools.options.process_software_build_specs(options)

Create a dictionary with specified software build options. The options arguments should be a parsed option list (as delivered by parse_options(args).options)

easybuild.tools.options.set_tmpdir(tmpdir=None, raise_error=False)

Set temporary directory to be used by tempfile and others.

easybuild.tools.options.terminal_supports_colors(stream)
easybuild.tools.options.use_color(colorize, stream=<open file '<stdout>', mode 'w'>)

Return True or False depending on whether ANSI color escapes are to be used when printing to stream.

The colorize argument can take the three values fancylogger.Colorize.AUTO/.ALWAYS/.NEVER, see the --color option for their meaning.