1
0
Fork 0
forked from lthn/blockchain

install conan if not installed

This commit is contained in:
Snider 2024-03-26 18:37:55 +00:00
parent 3b8a03dd08
commit a20a575647

View file

@ -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 "