pcvs.helpers.pm module

class pcvs.helpers.pm.ModuleManager(spec)[source]

Bases: PManager

handles Module package manager

get(load=True, install=False)[source]

get the command to install the specified package

Parameters
  • load (bool, optional) – load the specified package, defaults to True

  • install (bool, optional) – install the specified package, defaults to False

Returns

command to install/load the package

Return type

str

class pcvs.helpers.pm.PManager(spec=None)[source]

Bases: object

generic Package Manager

get(load, install)[source]

Get specified packages for this manager

Parameters
  • load (bool) – True to load the package

  • install (bool) – True to install the package

install()[source]

install specified packages

class pcvs.helpers.pm.SpackManager(spec)[source]

Bases: PManager

handles Spack package manager

get(load=True, install=True)[source]

get the commands to install the specified package

Parameters
  • load (bool, optional) – load the specified package, defaults to True

  • install (bool, optional) – install the specified package, defaults to True

Returns

command to install/load the package

Return type

str

pcvs.helpers.pm.identify(pm_node)[source]

identifies where

Parameters

pm_node ([type]) – [description]

Returns

[description]

Return type

[type]