1 from abc import abstractmethod
2 from distutils.dist import Distribution
3 from typing import Any, Callable, Iterable
6 sub_commands: list[tuple[str, Callable[[Command], bool] | None]]
7 def __init__(self, dist: Distribution) -> None: ...
9 def initialize_options(self) -> None: ...
11 def finalize_options(self) -> None: ...
13 def run(self) -> None: ...
14 def announce(self, msg: str, level: int = ...) -> None: ...
15 def debug_print(self, msg: str) -> None: ...
16 def ensure_string(self, option: str, default: str | None = ...) -> None: ...
17 def ensure_string_list(self, option: str | list[str]) -> None: ...
18 def ensure_filename(self, option: str) -> None: ...
19 def ensure_dirname(self, option: str) -> None: ...
20 def get_command_name(self) -> str: ...
21 def set_undefined_options(self, src_cmd: str, *option_pairs: tuple[str, str]) -> None: ...
22 def get_finalized_command(self, command: str, create: int = ...) -> Command: ...
23 def reinitialize_command(self, command: Command | str, reinit_subcommands: int = ...) -> Command: ...
24 def run_command(self, command: str) -> None: ...
25 def get_sub_commands(self) -> list[str]: ...
26 def warn(self, msg: str) -> None: ...
27 def execute(self, func: Callable[..., Any], args: Iterable[Any], msg: str | None = ..., level: int = ...) -> None: ...
28 def mkpath(self, name: str, mode: int = ...) -> None: ...
33 preserve_mode: int = ...,
34 preserve_times: int = ...,
35 link: str | None = ...,
37 ) -> tuple[str, bool]: ... # level is not used
42 preserve_mode: int = ...,
43 preserve_times: int = ...,
44 preserve_symlinks: int = ...,
46 ) -> list[str]: ... # level is not used
47 def move_file(self, src: str, dst: str, level: Any = ...) -> str: ... # level is not used
48 def spawn(self, cmd: Iterable[str], search_path: int = ..., level: Any = ...) -> None: ... # level is not used
53 root_dir: str | None = ...,
54 base_dir: str | None = ...,
55 owner: str | None = ...,
56 group: str | None = ...,
60 infiles: str | list[str] | tuple[str],
62 func: Callable[..., Any],
64 exec_msg: str | None = ...,
65 skip_msg: str | None = ...,
67 ) -> None: ... # level is not used