diff --git a/tools/batools/build.py b/tools/batools/build.py index 0f8eca15..ad241f49 100644 --- a/tools/batools/build.py +++ b/tools/batools/build.py @@ -500,6 +500,8 @@ def _vstr(nums: Sequence[int]) -> str: def checkenv() -> None: """Check for tools necessary to build and run the app.""" + # pylint: disable=too-many-branches + from efrotools import PYTHON_BIN print(f'{Clr.BLD}Checking environment...{Clr.RST}', flush=True) @@ -509,6 +511,12 @@ def checkenv() -> None: raise CleanError('curl is required; please install it via apt,' ' brew, etc.') + # Make sure they've got rsync. + if subprocess.run(['which', 'rsync'], check=False, + capture_output=True).returncode != 0: + raise CleanError('rsync is required; please install it via apt,' + ' brew, etc.') + # Make sure they've got our target python version. if subprocess.run(['which', PYTHON_BIN], check=False, capture_output=True).returncode != 0: