Module ImportFrom alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Import alias identifier FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call NameLoad Str keyword NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Str Str keyword NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Str Str keyword NameLoad keyword Str Expr Call NameLoad Str Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call NameLoad Str Str keyword Str keyword Str keyword AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call NameLoad Str keyword Str keyword NameLoad keyword Str keyword Str Expr Call NameLoad Str keyword Str keyword NameLoad keyword Str keyword Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call NameLoad Str keyword Str keyword NameLoad keyword Str keyword Str Expr Call NameLoad Str keyword Str keyword NameLoad keyword Str keyword Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call NameLoad Str keyword Str keyword Str keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword Str Expr Call NameLoad Str keyword Str keyword Str keyword ListLoad keyword NameLoad keyword Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call NameLoad Str keyword Str keyword Str keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword Str Expr Call NameLoad Str keyword Str keyword Str keyword ListLoad keyword NameLoad keyword Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call NameLoad Str keyword Str keyword Str keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword Str Expr Call NameLoad Str keyword Str keyword Str keyword ListLoad keyword NameLoad keyword Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body If CompareNotIn NameLoad NameLoad body Return TupleLoad NameLoad ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad Num Assign NameStore IfExp CompareIn Str SubscriptLoad NameLoad Slice NameLoad Call AttributeLoad NameLoad attr Str NameLoad NameLoad If NameLoad body Return TupleLoad SubscriptLoad NameLoad Slice Num NameLoad SubscriptLoad NameLoad Slice NameLoad NameLoad SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num orelse Return TupleLoad SubscriptLoad NameLoad Slice Num NameLoad SubscriptLoad NameLoad Slice NameLoad ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Dict If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If BoolOpAnd CompareNotIn Str NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call NameLoad ListComp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad CompareIn NameLoad NameLoad Assign NameStore NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Slice Num Num NameLoad Assign NameStore BinOpAdd NameLoad NameLoad If CompareIn Str NameLoad body Assign NameStore ListComp NameLoad comprehension NameStore NameLoad BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareNotIn NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad If BoolOpAnd CompareNotIn Str NameLoad CompareEq Call NameLoad NameLoad Num body Assign NameStore NameLoad If BoolOpAnd CompareNotIn Str NameLoad CompareEq Call NameLoad NameLoad Num body Assign NameStore NameLoad If BoolOpAnd CompareNotIn Str NameLoad CompareEq Call NameLoad NameLoad Num NameLoad body Assign NameStore NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad keyword NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpAdd BinOpAdd Str Str Str Assign NameStore Dict Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr NameLoad NameLoad ListLoad For TupleStore NameStore NameStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Str IfExp BoolOpOr NameLoad NameLoad Call NameLoad BoolOpOr NameLoad NameLoad Str orelse If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Str Call NameLoad BoolOpOr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpAdd BinOpAdd Str Str Str Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr NameLoad NameLoad ListLoad Assign NameStore ListComp BoolOpOr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Assign NameStore IfExp NameLoad ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad ListLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Str Call AttributeLoad Str attr NameLoad attr If NameLoad body Assign NameStore ListComp NameLoad comprehension NameStore NameLoad Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call NameLoad Str Assign SubscriptStore NameLoad Index Str Num If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad Assign NameStore Dict Str Str NameLoad BinOpAdd NameLoad Num handlers ExceptHandler type NameLoad body Assign NameStore Dict Str Str Num Num Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore CompareGt Call NameLoad NameLoad Num If NameLoad body Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore CompareGt Call NameLoad NameLoad Num If NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Str Call AttributeLoad Str attr NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str NameLoad keyword Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore ListLoad orelse Assign NameStore NameLoad Return TupleLoad BinOpAdd NameLoad NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore IfExp CompareIs NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num NameLoad Assign NameStore NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Str Call AttributeLoad Str attr NameLoad attr orelse If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Str Call AttributeLoad Str attr NameLoad attr Assign NameStore Dict Str Str Str Str NameLoad NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list
N/A __future__ print_function N/A argparse N/A os N/A re N/A sys multiprocessing cpu_count catkin_tools.common wide_log N/A catkin_tools.execution.job_server job_server add_context_args N/A N/A parser N/A N/A N/A Add common workspace and profile args to an argparse parser.

    :param parser: The python argparse parser object (or subparser)
    :type parser: ArgumentParser
     N/A add N/A parser add_argument N/A N/A add_workspace_arg parser N/A N/A add --profile default None help The name of a config profile to use (default: active profile) N/A add_workspace_arg N/A N/A parser N/A N/A N/A Add common workspace arg to an argparse parser.

    :param parser: The python argparse parser object (or subparser)
    :type parser: ArgumentParser
     N/A add N/A parser add_argument N/A N/A add --workspace -w default None help The path to the catkin_tools workspace or a directory contained within it (default: ".") N/A add_cmake_and_make_and_catkin_make_args N/A N/A parser N/A N/A N/A Add common make and cmake args to an argparse parser.

    :param parser: The python argparse parser object (or subparser)
    :type parser: ArgumentParser
     N/A add N/A parser add_argument N/A N/A add -j --jobs default None help Maximum number of build jobs to be distributed across active packages. (default is cpu count) N/A N/A add -p --parallel-packages metavar PACKAGE_JOBS dest parallel_jobs default None help Maximum number of packages allowed to be built in parallel (default is cpu count) N/A N/A add --parallel-jobs --parallel action store_true dest parallel_jobs help N/A argparse SUPPRESS N/A add N/A N/A N/A parser add_mutually_exclusive_group add_argument N/A N/A add --jobserver dest use_internal_make_jobserver default None action store_true help Use the internal GNU Make job server which will limit the number of Make jobs across all active packages. N/A N/A add --no-jobserver dest use_internal_make_jobserver default None action store_false help Disable the internal GNU Make job server, and use an external one (like distcc, for example). N/A add N/A N/A N/A parser add_mutually_exclusive_group add_argument N/A N/A add --env-cache dest use_env_cache default None action store_true help Re-use cached environment variables when re-sourcing a resultspace that has been loaded at a different stage in the task. N/A N/A add --no-env-cache dest use_env_cache default None action store_false help Don't cache environment variables when re-sourcing the same resultspace. N/A add N/A N/A N/A parser add_mutually_exclusive_group add_argument N/A N/A add --cmake-args metavar ARG dest cmake_args nargs + required False type str default None help Arbitrary arguments which are passes to CMake. It collects all of following arguments until a "--" is read. N/A N/A add --no-cmake-args dest cmake_args action store_const const N/A default None help Pass no additional arguments to CMake. N/A add N/A N/A N/A parser add_mutually_exclusive_group add_argument N/A N/A add --make-args metavar ARG dest make_args nargs + required False type str default None help Arbitrary arguments which are passes to make.It collects all of following arguments until a "--" is read. N/A N/A add --no-make-args dest make_args action store_const const N/A default None help Pass no additional arguments to make (does not affect --catkin-make-args). N/A add N/A N/A N/A parser add_mutually_exclusive_group add_argument N/A N/A add --catkin-make-args metavar ARG dest catkin_make_args nargs + required False type str default None help Arbitrary arguments which are passes to make but only for catkin packages.It collects all of following arguments until a "--" is read. N/A N/A add --no-catkin-make-args dest catkin_make_args action store_const const N/A default None help Pass no additional arguments to make for catkin packages (does not affect --make-args). N/A split_arguments N/A N/A args splitter_name splitter_index N/A None None N/A N/A Split list of args into (other, split_args, other) between splitter_name/index and `--`

    :param args: list of all arguments
    :type args: list of str
    :param splitter_name: optional argument used to split out specific args
    :type splitter_name: str
    :param splitter_index: specific index at which to split
    :type splitter_index: int

    :returns: tuple (other, split_args)
     N/A N/A splitter_index None N/A N/A N/A splitter_name args N/A N/A N/A args N/A N/A splitter_index N/A N/A args index splitter_name N/A start_index N/A splitter_index 1 N/A end_index N/A N/A -- N/A args N/A start_index N/A N/A args index -- start_index None N/A end_index N/A N/A N/A N/A args N/A 0 splitter_index N/A args N/A start_index end_index N/A args N/A N/A end_index 1 N/A N/A N/A N/A args N/A 0 splitter_index N/A args N/A start_index N/A N/A _extract_cmake_and_make_arguments N/A N/A args extract_catkin_make N/A N/A N/A Extract arguments which are meant to be passed to CMake and GNU Make
    through the catkin_tools command line interface.

    :param args: system arguments from which special arguments need to be extracted
    :type args: list
    :returns: tuple of separate args, cmake_args, make args, and catkin make args
    :rtype: tuple
     N/A cmake_args N/A N/A make_args N/A N/A catkin_make_args N/A N/A arg_types N/A N/A N/A --no-cmake-args args N/A N/A N/A arg_types N/A --cmake-args cmake_args N/A N/A --no-make-args args N/A N/A N/A arg_types N/A --make-args make_args N/A N/A N/A --no-catkin_make_args args extract_catkin_make N/A N/A N/A arg_types N/A --catkin-make-args catkin_make_args N/A ordered_splitters N/A reversed N/A N/A i t N/A N/A i t N/A enumerate args N/A t arg_types N/A head_args args N/A tail_args N/A N/A N/A index name ordered_splitters N/A N/A N/A head_args specific tail N/A split_arguments head_args splitter_index index N/A N/A N/A tail_args extend tail N/A N/A N/A arg_types N/A name N/A 0 0 specific N/A args N/A head_args tail_args N/A N/A --cmake-args arg_types N/A N/A implicit_cmake_args N/A a N/A a args N/A N/A N/A a startswith -D N/A N/A a startswith -G N/A args N/A a N/A a args N/A a implicit_cmake_args N/A cmake_args N/A implicit_cmake_args cmake_args N/A N/A N/A --no-cmake-args args N/A N/A len cmake_args 0 N/A N/A cmake_args None N/A N/A N/A --no-make-args args N/A N/A len make_args 0 N/A N/A make_args None N/A N/A N/A --no-catkin-make-args args N/A N/A len catkin_make_args 0 extract_catkin_make N/A N/A catkin_make_args None N/A N/A args cmake_args make_args catkin_make_args N/A extract_cmake_and_make_and_catkin_make_arguments N/A N/A args N/A N/A N/A Extracts cmake, make, and catkin specific make arguments from given system arguments

    :param args: system arguments from which special arguments need to be extracted
    :type args: list
    :returns: tuple of separate args, cmake_args, make args, and catkin make args
    :rtype: tuple
     N/A N/A _extract_cmake_and_make_arguments args extract_catkin_make True N/A extract_cmake_and_make_arguments N/A N/A args N/A N/A N/A Extracts cmake and make arguments from the given system arguments

    :param args: system arguments from which special arguments need to be extracted
    :type args: list
    :returns: tuple of separate args, cmake_args, and make_args
    :rtype: tuple
     N/A N/A args cmake_args make_args _ N/A _extract_cmake_and_make_arguments args extract_catkin_make False N/A N/A args cmake_args make_args N/A extract_jobs_flags_values N/A N/A mflags N/A N/A N/A Gets the values of tha make jobs flags

    :param mflags: string of space separated make arguments
    :type mflags: str
    :returns: dictionary mapping jobs flags to jobs flags values
    :rtype: dict
     N/A regex N/A N/A (?:^|\s)(?:-?(j|l)(\s*[0-9]+|\s|$)) | (?:^|\s)(?:(?:--)?(jobs|load-average)(?:(?:=|\s+)([0-9]+)|(?:\s|$))) N/A jobs_dict N/A N/A matches N/A N/A N/A re findall regex mflags N/A N/A N/A k v key value matches N/A N/A v N/A N/A v strip N/A value N/A N/A value strip N/A N/A N/A k j N/A key jobs N/A N/A N/A jobs_dict N/A jobs N/A N/A v value N/A int N/A v value N/A N/A N/A N/A k l N/A key load-average N/A N/A N/A jobs_dict N/A load-average N/A float N/A v value N/A jobs_dict N/A extract_jobs_flags N/A N/A mflags N/A N/A N/A Extracts make job flags from a list of other make flags, i.e. -j8 -l8

    :param mflags: string of space separated make arguments
    :type mflags: str
    :returns: list of make jobs flags
    :rtype: list
     N/A regex N/A N/A (?:^|\s)(-?(?:j|l)(?:\s*[0-9]+|\s|$)) | (?:^|\s)((?:--)?(?:jobs|load-average)(?:(?:=|\s+)[0-9]+|(?:\s|$))) N/A matches N/A N/A N/A re findall regex mflags N/A N/A matches N/A N/A N/A m N/A 0 N/A m N/A 1 N/A m matches N/A filtered_flags N/A matches N/A N/A N/A m strip N/A m matches N/A N/A filtered_flags N/A handle_make_arguments N/A N/A input_make_args force_single_threaded_when_running_tests N/A False N/A N/A Special handling for make arguments.

    If force_single_threaded_when_running_tests is True, jobs flags are
    replaced with -j1, because tests cannot handle parallelization.

    If no job flags are present and there are none in the MAKEFLAGS environment
    variable, then make flags are set to the cpu_count, e.g. -j4 -l4.

    :param input_make_args: list of make arguments to be handled
    :type input_make_args: list
    :param force_single_threaded_when_running_tests: self explanatory
    :type force_single_threaded_when_running_tests: bool
    :returns: copied list of make arguments, potentially with some modifications
    :rtype: list
     N/A make_args N/A list input_make_args N/A jobs_dict N/A extract_jobs_flags_values N/A N/A join make_args N/A jobs_args N/A extract_jobs_flags N/A N/A join make_args N/A N/A N/A len jobs_args 0 N/A N/A make_args N/A N/A N/A N/A re sub N/A N/A join jobs_args N/A N/A join make_args split N/A force_single_threaded_when_running_tests N/A N/A run_tests N/A a N/A a make_args N/A N/A a startswith run_tests N/A run_tests N/A N/A N/A wide_log Forcing "-j1" for running unit tests. N/A N/A jobs_dict N/A jobs 1 N/A N/A N/A job_server gnu_make_enabled N/A N/A N/A N/A make_args extend N/A N/A job_server gnu_make_args N/A N/A N/A jobs jobs_dict N/A N/A N/A N/A make_args append N/A N/A -j{0} format N/A jobs_dict N/A jobs N/A N/A load-average jobs_dict N/A N/A N/A N/A make_args append N/A N/A -l{0} format N/A jobs_dict N/A load-average N/A make_args N/A configure_make_args N/A N/A make_args jobs_args use_internal_make_jobserver N/A N/A N/A Initialize the internal GNU Make jobserver or configure it as a pass-through

    :param make_args: arguments to be passed to GNU Make
    :type make_args: list
    :param use_internal_make_jobserver: if true, use the internal jobserver
    :type make_args: bool
    :rtype: tuple (final make_args, using makeflags, using cliflags, using jobserver)
     N/A N/A N/A n_cpus N/A cpu_count N/A jobs_flags N/A jobs load-average n_cpus N/A n_cpus 1 N/A N/A N/A NotImplementedError N/A N/A jobs_flags N/A jobs load-average 1 1 N/A makeflags_jobs_flags N/A extract_jobs_flags N/A N/A N/A os environ get MAKEFLAGS N/A using_makeflags_jobs_flags N/A N/A len makeflags_jobs_flags 0 N/A using_makeflags_jobs_flags N/A N/A makeflags_jobs_flags_dict N/A extract_jobs_flags_values N/A N/A join makeflags_jobs_flags N/A N/A N/A jobs_flags update makeflags_jobs_flags_dict N/A cli_jobs_flags jobs_args N/A using_cli_flags N/A N/A len cli_jobs_flags 0 N/A cli_jobs_flags N/A N/A N/A N/A jobs_flags update N/A extract_jobs_flags_values N/A N/A join cli_jobs_flags N/A make_args N/A N/A N/A N/A re sub N/A N/A join cli_jobs_flags N/A N/A join make_args split N/A N/A N/A job_server initialize max_jobs N/A N/A jobs_flags get jobs None max_load N/A N/A jobs_flags get load-average None gnu_make_enabled use_internal_make_jobserver N/A N/A N/A job_server gnu_make_enabled N/A N/A jobs_args N/A N/A N/A jobs_args cli_jobs_flags N/A N/A N/A make_args jobs_args using_makeflags_jobs_flags using_cli_flags N/A N/A job_server gnu_make_enabled N/A argument_preprocessor N/A N/A args N/A N/A N/A Perform processing of argument patterns which are not captured by
    argparse, before being passed to argparse

    :param args: system arguments from which special arguments need to be extracted
    :type args: list
    :returns: a tuple contianing a list of the arguments which can be handled
    by argparse and a dict of the extra arguments which this function has
    extracted
    :rtype: tuple
     N/A args N/A N/A args None N/A N/A sys argv N/A 1 args N/A extract_make_args extract_cmake_and_make_and_catkin_make_arguments N/A N/A args cmake_args make_args catkin_make_args N/A extract_make_args args N/A jobs_args N/A extract_jobs_flags N/A N/A join args N/A N/A N/A len jobs_args 0 N/A N/A args N/A N/A N/A N/A re sub N/A N/A join jobs_args N/A N/A join args split N/A N/A N/A make_args None N/A N/A jobs_args N/A extract_jobs_flags N/A N/A join make_args N/A N/A N/A len jobs_args 0 N/A N/A make_args N/A N/A N/A N/A re sub N/A N/A join jobs_args N/A N/A join make_args split N/A extras N/A cmake_args make_args jobs_args catkin_make_args cmake_args make_args jobs_args catkin_make_args N/A N/A args extras N/A