From a20a575647789b7b1422fdcb39ebf5a9c7397137 Mon Sep 17 00:00:00 2001 From: Snider Date: Tue, 26 Mar 2024 18:37:55 +0000 Subject: [PATCH] install conan if not installed --- utils/build/testnet_mac_osx_cli.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/utils/build/testnet_mac_osx_cli.sh b/utils/build/testnet_mac_osx_cli.sh index f48e0dd1..4ecc7098 100755 --- a/utils/build/testnet_mac_osx_cli.sh +++ b/utils/build/testnet_mac_osx_cli.sh @@ -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 "