easybuild.tools.toolchain.utilities module

Toolchain utility module

Easy access to actual Toolchain classes

Based on VSC-tools vsc.mympirun.mpi.mpi and vsc.mympirun.rm.sched

author:Stijn De Weirdt (Ghent University)
author:Kenneth Hoste (Ghent University)
easybuild.tools.toolchain.utilities.get_toolchain(tc, tcopts, mns=None, tcdeps=None, modtool=None)

Return an initialized toolchain for the given specifications. If none is available in the toolchain instances cache, a new one is created.

  • tc – dictionary specifying toolchain name/version
  • tcopts – dictionary specifying toolchain options
  • mns – module naming scheme to use
  • tcdeps – toolchain dependencies (i.e. toolchain components)
  • modtool – ModulesTool instance to use

Obtain a Toolchain instance for the toolchain with specified name, next to a list of available toolchains. :param name: toolchain name :return: Toolchain instance (or None), found_toolchains