2019-12-25 22:18:07 +03:00
|
|
|
set -e
|
|
|
|
|
2020-02-07 08:14:54 +03:00
|
|
|
if [ `uname` = "Linux" ] && type apt-get; then
|
|
|
|
# Debian/Ubuntu
|
2020-03-27 21:56:41 +03:00
|
|
|
sudo apt-get install -y libgmp3-dev libboost-dev libboost-system-dev npm python3-dev cmake
|
2020-02-07 08:14:54 +03:00
|
|
|
fi
|
|
|
|
|
2020-03-28 01:59:25 +03:00
|
|
|
# this fancy syntax sets INSTALL_PYTHON_PATH to "python3.7" unless INSTALL_PYTHON_VERSION is defined
|
|
|
|
# if INSTALL_PYTHON_VERSION=3.8, then INSTALL_PYTHON_PATH becomes python3.8
|
|
|
|
|
|
|
|
INSTALL_PYTHON_PATH=python${INSTALL_PYTHON_VERSION:-3.7}
|
|
|
|
|
|
|
|
$INSTALL_PYTHON_PATH -m venv venv
|
2020-03-28 03:52:24 +03:00
|
|
|
if [ ! -f "activate" ]; then
|
|
|
|
ln -s venv/bin/activate
|
|
|
|
fi
|
2020-03-28 01:08:50 +03:00
|
|
|
. ./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
|
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-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"
|
2020-03-27 20:37:22 +03:00
|
|
|
echo ""
|
|
|
|
echo "Return to the README.md to start running the Chia blockchain"
|
|
|
|
echo "https://github.com/Chia-Network/chia-blockchain/blob/master/README.md"
|