temci.setup package

Submodules

temci.setup.setup module

This module helps to build the C and C++ code in the scripts directory.

exception temci.setup.setup.ExecError(cmd: str, out: str, err: str)[source]

Bases: Exception

Error raised if a command failed.

cmd

Failed command

err

Error output of the command

out

Output of the command

temci.setup.setup.exec(dir: str, cmd: str)[source]

Run the passed command in the passed directory

Parameters
  • dir – passed directory

  • cmd – passed command

Raises

ExecError – if the executed program has a > 0 error code

temci.setup.setup.make_scripts(build_kernel_modules: bool = False)[source]

Builds the C and C++ code inside the scripts directory.

Parameters

build_kernel_modules – build the kernel modules for disabling the CPU caches too

temci.setup.setup.script_relative(file: str) str[source]

Returns the absolute version of the passed file name. :param file: passed file name relative to the scripts directory

Module contents