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

install_extension(*args, **kwargs)

Actual installation of an extension.

install_extension_async(*args, **kwargs)

Asynchronous installation of an extension.

install_extension_substep(substep, *args, **kwargs)

Carry out extension installation substep allowing use of deprecated methods on those extensions using an older EasyBlock

post_install_extension()

Stuff to do after installing a extension.

postrun()

[DEPRECATED][6.0] Stuff to do after installing a extension.

pre_install_extension()

Stuff to do before installing a extension.

prerun()

[DEPRECATED][6.0] Stuff to do before installing a extension.

run(*args, **kwargs)

[DEPRECATED][6.0] Actual installation of an extension.

run_async(*args, **kwargs)

[DEPRECATED][6.0] 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