2019-12-25 22:18:07 +03:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2020-02-07 08:14:54 +03:00
|
|
|
if [ `uname` = "Linux" ] && type apt-get; then
|
|
|
|
# Debian/Ubuntu
|
2020-03-24 16:43:41 +03:00
|
|
|
sudo apt-get install -y libgmp3-dev libboost-dev libboost-system-dev npm
|
2020-02-07 08:14:54 +03:00
|
|
|
fi
|
|
|
|
|
2019-11-20 02:55:40 +03:00
|
|
|
python3 -m venv .venv
|
|
|
|
. .venv/bin/activate
|
2020-03-27 05:50:34 +03:00
|
|
|
# pip 20.x+ supports Linux binary wheels
|
2020-03-25 07:52:23 +03:00
|
|
|
pip install --upgrade pip
|
2020-01-17 11:36:01 +03:00
|
|
|
pip install wheel
|
2019-11-20 02:55:40 +03:00
|
|
|
pip install -e .
|
|
|
|
pip install -r requirements.txt
|
2019-11-20 23:56:48 +03:00
|
|
|
|
2020-02-07 08:14:54 +03:00
|
|
|
make -C lib/chiavdf/fast_vdf
|
2020-03-24 16:43:41 +03:00
|
|
|
cd ./src/electron-ui
|
|
|
|
npm install
|
2020-02-07 08:14:54 +03:00
|
|
|
|
2019-12-25 22:18:07 +03:00
|
|
|
echo ""
|
|
|
|
echo "Chia blockchain install.sh complete."
|
2019-11-28 10:50:42 +03:00
|
|
|
echo "For assistance join us on Keybase in the #testnet chat channel"
|
|
|
|
echo "https://keybase.io/team/chia_network.public"
|