forked from starkware-libs/stone-prover
-
Notifications
You must be signed in to change notification settings - Fork 4
/
install_deps.sh
executable file
·41 lines (29 loc) · 1.11 KB
/
install_deps.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
39
40
41
#!/bin/bash
# Show executed shell commands
set -o xtrace
# Exit on error.
set -e
os=$(uname | tr '[:upper:]' '[:lower:]')
arch=$(uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/)
if [ "$os" == "linux" ]; then
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y git wget libtinfo5 libdw-dev libgmp3-dev python3 python3-pip
pip install --upgrade pip
pip install cpplint pytest numpy sympy==1.12.1 cairo-lang==0.12.0
wget "https://github.com/bazelbuild/bazelisk/releases/download/v1.20.0/bazelisk-$os-$arch"
chmod 755 "bazelisk-$os-$arch"
mv "bazelisk-$os-$arch" /bin/bazelisk
elif [ "$os" == "darwin" ]; then
# Homebrew is most likely already installed. If not, uncomment the next line.
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install git
brew install gmp
brew install [email protected]
python3 -m pip install --upgrade pip
python3 -m pip install cpplint pytest numpy sympy==1.12.1 cairo-lang==0.12.0
brew install bazelisk
else
echo "$os/$arch is not supported"
exit 1
fi