Skip to content

Commit

Permalink
install conan if not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Snider committed Mar 26, 2024
1 parent 3b8a03d commit a20a575
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions utils/build/testnet_mac_osx_cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ if [ -n "$build_prefix" ]; then
build_prefix_label="$build_prefix "
fi

if [ $(conan --version &> /dev/null; echo $?) -eq 0 ]; then
echo "Conan is installed."
elif [ $(pip list | grep -Fq "conan"; echo $?) -eq 0 ]; then
echo "Conan is installed (verified via pip)."
else
echo "Conan does not appear to be installed. Installing..."
pip install conan # Install Conan
fi

testnet_def="-D TESTNET=TRUE"
testnet_label="testnet "
Expand Down

0 comments on commit a20a575

Please sign in to comment.