mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-07 08:03:30 +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:
|
def checkenv() -> None:
|
||||||
"""Check for tools necessary to build and run the app."""
|
"""Check for tools necessary to build and run the app."""
|
||||||
|
# pylint: disable=too-many-branches
|
||||||
|
|
||||||
from efrotools import PYTHON_BIN
|
from efrotools import PYTHON_BIN
|
||||||
print(f'{Clr.BLD}Checking environment...{Clr.RST}', flush=True)
|
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,'
|
raise CleanError('curl is required; please install it via apt,'
|
||||||
' brew, etc.')
|
' 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.
|
# Make sure they've got our target python version.
|
||||||
if subprocess.run(['which', PYTHON_BIN], check=False,
|
if subprocess.run(['which', PYTHON_BIN], check=False,
|
||||||
capture_output=True).returncode != 0:
|
capture_output=True).returncode != 0:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user