taucmdr.cli.commands.target.create module

target create subcommand.

class taucmdr.cli.commands.target.create.TargetCreateCommand(*args, **kwargs)[source]

Bases: CreateCommand

target create subcommand.

_abc_impl = <_abc._abc_data object>
static _compiler_flag_action_call(family_attr)[source]
_configure_argument_group(group, kbase, family_flag, family_attr, hint)[source]
_construct_parser()[source]

Construct a command line argument parser.

static _family_flag_action(kbase, family_attr)[source]

Return an argparse action that sets every compiler in the chosen kbase family.

_get_compiler_from_defaults(kbase, role)[source]

Use model defaults and preferred family to fill this role.

_get_compiler_from_env(role)[source]

If compiler environment variable set (e.g. CC) use that value to fill this role.

_get_compiler_from_sibling(role, sibling)[source]

If we know a compiler sibling then use its family information to fill this role.

_parse_args(argv)[source]
main(argv)[source]

Command program entry point.

Parameters:

argv (list) – Command line arguments.

Returns:

Process return code: non-zero if a problem occurred, 0 otherwise

Return type:

int

parse_compiler_flags(args)[source]

Create a dictionary of InstalledCompiler instances from commandl line arguments.

Parameters:

args – A namespace of parsed command line arguments.

Returns:

InstalledCompiler instances indexed by role keyword.

Return type:

dict

parse_tau_makefile(args)[source]

Set target arguments from the TAU Makefile in args.forced_makefile.

Parameters:

args – A namespace of parsed command line arguments, updated in place.

Raises:

ConfigurationError – The makefile can’t be read, or its TAU_ARCH is missing, unknown, or ambiguous.