mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-29 18:53:22 +08:00
Add rsync to checkenv
This commit is contained in:
parent
efe7050445
commit
a7e607515c
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user