From 4acbe40937e0962a55fc77ca74552b5d7064c680 Mon Sep 17 00:00:00 2001 From: Brandon Macer Date: Tue, 22 Oct 2024 18:59:29 -0400 Subject: [PATCH] add check for cargo (#57) --- computer-use-demo/setup.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/computer-use-demo/setup.sh b/computer-use-demo/setup.sh index f8b992dd..3185f1c2 100755 --- a/computer-use-demo/setup.sh +++ b/computer-use-demo/setup.sh @@ -1,4 +1,10 @@ #!/bin/bash +if ! command -v cargo &> /dev/null; then + echo "Cargo (the package manager for Rust) is not present. This is required for one of this module's dependencies." + echo "See https://www.rust-lang.org/tools/install for installation instructions." + exit 1 +fi + python3 -m venv .venv source .venv/bin/activate pip install --upgrade pip