diff options
Diffstat (limited to 'src/setuptools_scm/_run_cmd.py')
-rw-r--r-- | src/setuptools_scm/_run_cmd.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/setuptools_scm/_run_cmd.py b/src/setuptools_scm/_run_cmd.py index e40589f..b1e5f1a 100644 --- a/src/setuptools_scm/_run_cmd.py +++ b/src/setuptools_scm/_run_cmd.py @@ -170,7 +170,9 @@ def _unsafe_quote_for_display(item: _t.PathT) -> str: return text if all(c not in text for c in " {[:") else f'"{text}"' -def has_command(name: str, args: Sequence[str] = ["help"], warn: bool = True) -> bool: +def has_command( + name: str, args: Sequence[str] = ["version"], warn: bool = True +) -> bool: try: p = run([name, *args], cwd=".", timeout=5) except OSError as e: |