forked from vmware/concord-bft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·38 lines (34 loc) · 913 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
set -e
set -u
install_basic_deps() {
sudo apt-get update
sudo apt-get install -y ccache cmake clang clang-format-9 python3-pip python3-setuptools libgmp3-dev g++ parallel libs3-dev
python3 -m pip install --upgrade wheel
python3 -m pip install --upgrade trio
}
default_profile_exists() {
local exists="false"
for profile in `conan profile list`; do
if [[ "$profile" == "default" ]]; then
exists="true"
break
fi
done
echo $exists
}
install_conan() {
echo "Using Conan build..."
echo "Installing Conan..."
python3 -m pip install --upgrade conan
result=$(default_profile_exists)
if [[ "$result" == "true" ]]; then
echo "Default profile exists. Skipping."
else
echo "Creating default profile..."
conan profile new default --detect
conan profile update settings.compiler.libcxx=libstdc++11 default
fi
}
install_basic_deps
install_conan