setuptools & distutils: more accurate spawn method (#13036)

This commit is contained in:
Avasam
2024-11-19 06:50:38 -05:00
committed by GitHub
parent 6db3e0cec5
commit 4addb8dd0b
7 changed files with 18 additions and 7 deletions

View File

@@ -1,6 +1,10 @@
from collections.abc import Iterable
from typing import Literal
def spawn(
cmd: list[str], search_path: bool | Literal[0, 1] = 1, verbose: bool | Literal[0, 1] = 0, dry_run: bool | Literal[0, 1] = 0
cmd: Iterable[str],
search_path: bool | Literal[0, 1] = 1,
verbose: bool | Literal[0, 1] = 0,
dry_run: bool | Literal[0, 1] = 0,
) -> None: ...
def find_executable(executable: str, path: str | None = None) -> str | None: ...