Skip to content

extension

Generic EasyBuild support for software extensions (e.g. Python packages). The Extension class should serve as a base class for all extensions.

Authors:

  • Stijn De Weirdt (Ghent University)
  • Dries Verdegem (Ghent University)
  • Kenneth Hoste (Ghent University)
  • Pieter De Baets (Ghent University)
  • Jens Timmerman (Ghent University)
  • Toon Willems (Ghent University)

Extension

Bases: object

Support for installing extensions.

name property

Shortcut the get the extension name.

required_deps property

Return list of required dependencies for this extension.

toolchain property

Toolchain used to build this extension.

version property

Shortcut the get the extension version.

__init__(mself, ext, extra_params=None)

Constructor for Extension class

PARAMETER DESCRIPTION
mself

parent Easyblock instance

ext

dictionary with extension metadata (name, version, src, patches, options, ...)

extra_params

extra custom easyconfig parameters to take into account for this extension

DEFAULT: None

async_cmd_check()

Check progress of installation command that was started asynchronously.

RETURNS DESCRIPTION

True if command completed, False otherwise

async_cmd_start(cmd, inp=None)

Start installation asynchronously using specified command.

postrun()

Stuff to do after installing a extension.

prerun()

Stuff to do before installing a extension.

run(*args, **kwargs)

Actual installation of an extension.

run_async(*args, **kwargs)

Asynchronous installation of an extension.

sanity_check_step()

Sanity check to run after installing extension

resolve_exts_filter_template(exts_filter, ext)

Resolve the exts_filter tuple by replacing the template values using the extension

PARAMETER DESCRIPTION
exts_filter

Tuple of (command, input) using template values (ext_name, ext_version, src)

ext

Instance of Extension or dictionary like with 'name' and optionally 'options', 'version', 'source' keys

RETURNS DESCRIPTION

(cmd, input) as a tuple of strings