chia-blockchain/install.sh

191 lines
5.8 KiB
Bash
Raw Normal View History

#!/bin/bash
Separate timelord, add Windows/CentOS/AMZN (#62) 1.1.1 release * windows build instructions * install.sh newline fix \n wasn't as cross platform as it should be so reverted to an extra echo * Add CentOS to README.md Full CentOS 7.7 install instructions * mention blspy * confirmed boost 1.67.0 works on Ubuntu * Update README.md. * Fix problem with zip download. * Remove scm warning Revert install instructions due to scm fix * Update README and install scripts to separate timelord installation Do not install VDF server and its dependencies in install.sh, create a separate script install_timelord.sh for that. * Move installation of VDF server dependencies to install_timelord.sh * First and broken attempt at CentOS install * Working CentOS 7.7 install * typos in timelord explanation * Timlord/VDF build instructions Specifics for CentOS and MacOS * Various install tips and tricks * spelling error * Add AMZN linux 2 install * Add AMZN linux 2 timelord install Also clean up base install instructions * Combine TL for AMZN and CentOS * Nits for AMZN and CentOS * CentOS, AMZN timelord paralleling * Fix header layouts * Replace VDF server compilation scripts with Makefile * layout improvements * fast_vdf: Remove unused files * Partial ARM install support * missing l in lib * Fleshed out Windows/WSL installs And verified the method for upgrade to 19.x * Move MacOS install fullnode to bottom * Change to mongo "system-wide" * Add mongo start to WSL * Add actual upgrade for WSL/Ubuntu Co-authored-by: Mariano Sorgente <sorgente711@gmail.com> Co-authored-by: Rostislav Skudnov <skrostislav@gmail.com> Co-authored-by: Richard Kiss <him@richardkiss.com> Co-authored-by: wjblanke <wjb2002@flex.com>
2019-12-25 22:18:07 +03:00
set -e
USAGE_TEXT="\
Usage: $0 [-d]
Test installers in Dockers (#9896) * Avoid issue with Ubuntu 21.10+ setuptools>=06 https://github.com/pypa/setuptools/issues/2956 https://gist.github.com/altendky/b852296ac520b343890c55eabc90c880 ``` File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 290, in set_undefined_options setattr(self, dst_option, getattr(src_cmd_obj, src_option)) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 103, in __getattr__ raise AttributeError(attr) AttributeError: install_layout ``` * corrections * test installers in various Linux Dockers * prep docker images with basic tools * --no-confirm for pacman * debug * debug * debug * stop installing git * Revert "stop installing git" This reverts commit 4b19f1601d2de82a73fd1cae11259199348c80f6. * checkout after installing git * pacman wants --noconfirm * Revert "debug" This reverts commit e0a2aed04164eae262683f60d524af3d3633d556. * Revert "debug" This reverts commit 3833da281a9684389e0cfb5a3ad28104fffb3f03. * Revert "debug" This reverts commit 705a3c5d6b296de1970dfff29b27ff1b616a78ea. * add bookworm * add install.sh -a for pacman --noconfirm automated installs * fix * fix * revert install_layout workaround * Remove =3.9* from debian python3-venv installation Already discussed this with @wallentx related to the addition in https://github.com/Chia-Network/chia-blockchain/pull/9633/files#diff-043df5bdbf6639d7a77e1d44c5226fd7371e5259a1e4df3a0dd5d64c30dca44fR85. * add fedora 33 and 34 * nicer naming * fedora not fedor * add ubuntu:bionic * also chia --help * add amazon * Amazon wants sudo * . * use git-core ppa for git in bionic * less sudo * oops
2022-01-24 08:46:16 +03:00
-a automated install, no questions
-d install development dependencies
-h display this help and exit
"
usage() {
echo "${USAGE_TEXT}"
}
Test installers in Dockers (#9896) * Avoid issue with Ubuntu 21.10+ setuptools>=06 https://github.com/pypa/setuptools/issues/2956 https://gist.github.com/altendky/b852296ac520b343890c55eabc90c880 ``` File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 290, in set_undefined_options setattr(self, dst_option, getattr(src_cmd_obj, src_option)) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 103, in __getattr__ raise AttributeError(attr) AttributeError: install_layout ``` * corrections * test installers in various Linux Dockers * prep docker images with basic tools * --no-confirm for pacman * debug * debug * debug * stop installing git * Revert "stop installing git" This reverts commit 4b19f1601d2de82a73fd1cae11259199348c80f6. * checkout after installing git * pacman wants --noconfirm * Revert "debug" This reverts commit e0a2aed04164eae262683f60d524af3d3633d556. * Revert "debug" This reverts commit 3833da281a9684389e0cfb5a3ad28104fffb3f03. * Revert "debug" This reverts commit 705a3c5d6b296de1970dfff29b27ff1b616a78ea. * add bookworm * add install.sh -a for pacman --noconfirm automated installs * fix * fix * revert install_layout workaround * Remove =3.9* from debian python3-venv installation Already discussed this with @wallentx related to the addition in https://github.com/Chia-Network/chia-blockchain/pull/9633/files#diff-043df5bdbf6639d7a77e1d44c5226fd7371e5259a1e4df3a0dd5d64c30dca44fR85. * add fedora 33 and 34 * nicer naming * fedora not fedor * add ubuntu:bionic * also chia --help * add amazon * Amazon wants sudo * . * use git-core ppa for git in bionic * less sudo * oops
2022-01-24 08:46:16 +03:00
PACMAN_AUTOMATED=
EXTRAS=
Test installers in Dockers (#9896) * Avoid issue with Ubuntu 21.10+ setuptools>=06 https://github.com/pypa/setuptools/issues/2956 https://gist.github.com/altendky/b852296ac520b343890c55eabc90c880 ``` File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 290, in set_undefined_options setattr(self, dst_option, getattr(src_cmd_obj, src_option)) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 103, in __getattr__ raise AttributeError(attr) AttributeError: install_layout ``` * corrections * test installers in various Linux Dockers * prep docker images with basic tools * --no-confirm for pacman * debug * debug * debug * stop installing git * Revert "stop installing git" This reverts commit 4b19f1601d2de82a73fd1cae11259199348c80f6. * checkout after installing git * pacman wants --noconfirm * Revert "debug" This reverts commit e0a2aed04164eae262683f60d524af3d3633d556. * Revert "debug" This reverts commit 3833da281a9684389e0cfb5a3ad28104fffb3f03. * Revert "debug" This reverts commit 705a3c5d6b296de1970dfff29b27ff1b616a78ea. * add bookworm * add install.sh -a for pacman --noconfirm automated installs * fix * fix * revert install_layout workaround * Remove =3.9* from debian python3-venv installation Already discussed this with @wallentx related to the addition in https://github.com/Chia-Network/chia-blockchain/pull/9633/files#diff-043df5bdbf6639d7a77e1d44c5226fd7371e5259a1e4df3a0dd5d64c30dca44fR85. * add fedora 33 and 34 * nicer naming * fedora not fedor * add ubuntu:bionic * also chia --help * add amazon * Amazon wants sudo * . * use git-core ppa for git in bionic * less sudo * oops
2022-01-24 08:46:16 +03:00
while getopts adh flag
do
case "${flag}" in
Test installers in Dockers (#9896) * Avoid issue with Ubuntu 21.10+ setuptools>=06 https://github.com/pypa/setuptools/issues/2956 https://gist.github.com/altendky/b852296ac520b343890c55eabc90c880 ``` File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 290, in set_undefined_options setattr(self, dst_option, getattr(src_cmd_obj, src_option)) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 103, in __getattr__ raise AttributeError(attr) AttributeError: install_layout ``` * corrections * test installers in various Linux Dockers * prep docker images with basic tools * --no-confirm for pacman * debug * debug * debug * stop installing git * Revert "stop installing git" This reverts commit 4b19f1601d2de82a73fd1cae11259199348c80f6. * checkout after installing git * pacman wants --noconfirm * Revert "debug" This reverts commit e0a2aed04164eae262683f60d524af3d3633d556. * Revert "debug" This reverts commit 3833da281a9684389e0cfb5a3ad28104fffb3f03. * Revert "debug" This reverts commit 705a3c5d6b296de1970dfff29b27ff1b616a78ea. * add bookworm * add install.sh -a for pacman --noconfirm automated installs * fix * fix * revert install_layout workaround * Remove =3.9* from debian python3-venv installation Already discussed this with @wallentx related to the addition in https://github.com/Chia-Network/chia-blockchain/pull/9633/files#diff-043df5bdbf6639d7a77e1d44c5226fd7371e5259a1e4df3a0dd5d64c30dca44fR85. * add fedora 33 and 34 * nicer naming * fedora not fedor * add ubuntu:bionic * also chia --help * add amazon * Amazon wants sudo * . * use git-core ppa for git in bionic * less sudo * oops
2022-01-24 08:46:16 +03:00
# automated
a) PACMAN_AUTOMATED=--noconfirm;;
# development
d) EXTRAS=${EXTRAS}dev,;;
h) usage; exit 0;;
*) echo; usage; exit 1;;
esac
done
UBUNTU=false
DEBIAN=false
if [ "$(uname)" = "Linux" ]; then
#LINUX=1
if command -v apt-get &> /dev/null; then
OS_ID=$(lsb_release -is)
if [ "$OS_ID" = "Debian" ]; then
DEBIAN=true
else
UBUNTU=true
fi
fi
fi
Separate timelord, add Windows/CentOS/AMZN (#62) 1.1.1 release * windows build instructions * install.sh newline fix \n wasn't as cross platform as it should be so reverted to an extra echo * Add CentOS to README.md Full CentOS 7.7 install instructions * mention blspy * confirmed boost 1.67.0 works on Ubuntu * Update README.md. * Fix problem with zip download. * Remove scm warning Revert install instructions due to scm fix * Update README and install scripts to separate timelord installation Do not install VDF server and its dependencies in install.sh, create a separate script install_timelord.sh for that. * Move installation of VDF server dependencies to install_timelord.sh * First and broken attempt at CentOS install * Working CentOS 7.7 install * typos in timelord explanation * Timlord/VDF build instructions Specifics for CentOS and MacOS * Various install tips and tricks * spelling error * Add AMZN linux 2 install * Add AMZN linux 2 timelord install Also clean up base install instructions * Combine TL for AMZN and CentOS * Nits for AMZN and CentOS * CentOS, AMZN timelord paralleling * Fix header layouts * Replace VDF server compilation scripts with Makefile * layout improvements * fast_vdf: Remove unused files * Partial ARM install support * missing l in lib * Fleshed out Windows/WSL installs And verified the method for upgrade to 19.x * Move MacOS install fullnode to bottom * Change to mongo "system-wide" * Add mongo start to WSL * Add actual upgrade for WSL/Ubuntu Co-authored-by: Mariano Sorgente <sorgente711@gmail.com> Co-authored-by: Rostislav Skudnov <skrostislav@gmail.com> Co-authored-by: Richard Kiss <him@richardkiss.com> Co-authored-by: wjblanke <wjb2002@flex.com>
2019-12-25 22:18:07 +03:00
2021-02-20 21:35:31 +03:00
# Check for non 64 bit ARM64/Raspberry Pi installs
if [ "$(uname -m)" = "armv7l" ]; then
echo ""
echo "WARNING:"
echo "The Chia Blockchain requires a 64 bit OS and this is 32 bit armv7l"
echo "For more information, see"
2021-02-20 21:38:39 +03:00
echo "https://github.com/Chia-Network/chia-blockchain/wiki/Raspberry-Pi"
2021-02-20 21:35:31 +03:00
echo "Exiting."
exit 1
fi
# Get submodules
2021-03-08 22:47:41 +03:00
git submodule update --init mozilla-ca
2021-02-20 21:35:31 +03:00
UBUNTU_PRE_2004=false
if $UBUNTU; then
LSB_RELEASE=$(lsb_release -rs)
# In case Ubuntu minimal does not come with bc
if ! command -v bc &> /dev/null; then
sudo apt install bc -y
fi
# Mint 20.04 repsonds with 20 here so 20 instead of 20.04
UBUNTU_PRE_2004=$(echo "$LSB_RELEASE<20" | bc)
2021-04-21 00:36:12 +03:00
UBUNTU_2100=$(echo "$LSB_RELEASE>=21" | bc)
fi
2020-04-06 11:19:25 +03:00
# Manage npm and other install requirements on an OS specific basis
if [ "$(uname)" = "Linux" ]; then
#LINUX=1
if [ "$UBUNTU" = "true" ] && [ "$UBUNTU_PRE_2004" = "1" ]; then
# Ubuntu
echo "Installing on Ubuntu pre 20.04 LTS."
sudo apt-get update
sudo apt-get install -y python3.7-venv python3.7-distutils
2021-04-23 00:13:48 +03:00
elif [ "$UBUNTU" = "true" ] && [ "$UBUNTU_PRE_2004" = "0" ] && [ "$UBUNTU_2100" = "0" ]; then
echo "Installing on Ubuntu 20.04 LTS."
sudo apt-get update
sudo apt-get install -y python3.8-venv python3-distutils
2021-04-21 00:36:12 +03:00
elif [ "$UBUNTU" = "true" ] && [ "$UBUNTU_2100" = "1" ]; then
echo "Installing on Ubuntu 21.04 or newer."
2021-04-21 00:36:12 +03:00
sudo apt-get update
sudo apt-get install -y python3.9-venv python3-distutils
elif [ "$DEBIAN" = "true" ]; then
echo "Installing on Debian."
sudo apt-get update
Test installers in Dockers (#9896) * Avoid issue with Ubuntu 21.10+ setuptools>=06 https://github.com/pypa/setuptools/issues/2956 https://gist.github.com/altendky/b852296ac520b343890c55eabc90c880 ``` File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 290, in set_undefined_options setattr(self, dst_option, getattr(src_cmd_obj, src_option)) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 103, in __getattr__ raise AttributeError(attr) AttributeError: install_layout ``` * corrections * test installers in various Linux Dockers * prep docker images with basic tools * --no-confirm for pacman * debug * debug * debug * stop installing git * Revert "stop installing git" This reverts commit 4b19f1601d2de82a73fd1cae11259199348c80f6. * checkout after installing git * pacman wants --noconfirm * Revert "debug" This reverts commit e0a2aed04164eae262683f60d524af3d3633d556. * Revert "debug" This reverts commit 3833da281a9684389e0cfb5a3ad28104fffb3f03. * Revert "debug" This reverts commit 705a3c5d6b296de1970dfff29b27ff1b616a78ea. * add bookworm * add install.sh -a for pacman --noconfirm automated installs * fix * fix * revert install_layout workaround * Remove =3.9* from debian python3-venv installation Already discussed this with @wallentx related to the addition in https://github.com/Chia-Network/chia-blockchain/pull/9633/files#diff-043df5bdbf6639d7a77e1d44c5226fd7371e5259a1e4df3a0dd5d64c30dca44fR85. * add fedora 33 and 34 * nicer naming * fedora not fedor * add ubuntu:bionic * also chia --help * add amazon * Amazon wants sudo * . * use git-core ppa for git in bionic * less sudo * oops
2022-01-24 08:46:16 +03:00
sudo apt-get install -y python3-venv
elif type pacman && [ -f "/etc/arch-release" ]; then
# Arch Linux
echo "Installing on Arch Linux."
echo "Python <= 3.9.9 is required. Installing python-3.9.9-1"
case $(uname -m) in
x86_64)
Test installers in Dockers (#9896) * Avoid issue with Ubuntu 21.10+ setuptools>=06 https://github.com/pypa/setuptools/issues/2956 https://gist.github.com/altendky/b852296ac520b343890c55eabc90c880 ``` File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 290, in set_undefined_options setattr(self, dst_option, getattr(src_cmd_obj, src_option)) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 103, in __getattr__ raise AttributeError(attr) AttributeError: install_layout ``` * corrections * test installers in various Linux Dockers * prep docker images with basic tools * --no-confirm for pacman * debug * debug * debug * stop installing git * Revert "stop installing git" This reverts commit 4b19f1601d2de82a73fd1cae11259199348c80f6. * checkout after installing git * pacman wants --noconfirm * Revert "debug" This reverts commit e0a2aed04164eae262683f60d524af3d3633d556. * Revert "debug" This reverts commit 3833da281a9684389e0cfb5a3ad28104fffb3f03. * Revert "debug" This reverts commit 705a3c5d6b296de1970dfff29b27ff1b616a78ea. * add bookworm * add install.sh -a for pacman --noconfirm automated installs * fix * fix * revert install_layout workaround * Remove =3.9* from debian python3-venv installation Already discussed this with @wallentx related to the addition in https://github.com/Chia-Network/chia-blockchain/pull/9633/files#diff-043df5bdbf6639d7a77e1d44c5226fd7371e5259a1e4df3a0dd5d64c30dca44fR85. * add fedora 33 and 34 * nicer naming * fedora not fedor * add ubuntu:bionic * also chia --help * add amazon * Amazon wants sudo * . * use git-core ppa for git in bionic * less sudo * oops
2022-01-24 08:46:16 +03:00
sudo pacman ${PACMAN_AUTOMATED} -U --needed https://archive.archlinux.org/packages/p/python/python-3.9.9-1-x86_64.pkg.tar.zst
;;
aarch64)
Test installers in Dockers (#9896) * Avoid issue with Ubuntu 21.10+ setuptools>=06 https://github.com/pypa/setuptools/issues/2956 https://gist.github.com/altendky/b852296ac520b343890c55eabc90c880 ``` File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 290, in set_undefined_options setattr(self, dst_option, getattr(src_cmd_obj, src_option)) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 103, in __getattr__ raise AttributeError(attr) AttributeError: install_layout ``` * corrections * test installers in various Linux Dockers * prep docker images with basic tools * --no-confirm for pacman * debug * debug * debug * stop installing git * Revert "stop installing git" This reverts commit 4b19f1601d2de82a73fd1cae11259199348c80f6. * checkout after installing git * pacman wants --noconfirm * Revert "debug" This reverts commit e0a2aed04164eae262683f60d524af3d3633d556. * Revert "debug" This reverts commit 3833da281a9684389e0cfb5a3ad28104fffb3f03. * Revert "debug" This reverts commit 705a3c5d6b296de1970dfff29b27ff1b616a78ea. * add bookworm * add install.sh -a for pacman --noconfirm automated installs * fix * fix * revert install_layout workaround * Remove =3.9* from debian python3-venv installation Already discussed this with @wallentx related to the addition in https://github.com/Chia-Network/chia-blockchain/pull/9633/files#diff-043df5bdbf6639d7a77e1d44c5226fd7371e5259a1e4df3a0dd5d64c30dca44fR85. * add fedora 33 and 34 * nicer naming * fedora not fedor * add ubuntu:bionic * also chia --help * add amazon * Amazon wants sudo * . * use git-core ppa for git in bionic * less sudo * oops
2022-01-24 08:46:16 +03:00
sudo pacman ${PACMAN_AUTOMATED} -U --needed http://tardis.tiny-vps.com/aarm/packages/p/python/python-3.9.9-1-aarch64.pkg.tar.xz
;;
*)
echo "Incompatible CPU architecture. Must be x86_64 or aarch64."
exit 1
;;
esac
Test installers in Dockers (#9896) * Avoid issue with Ubuntu 21.10+ setuptools>=06 https://github.com/pypa/setuptools/issues/2956 https://gist.github.com/altendky/b852296ac520b343890c55eabc90c880 ``` File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 290, in set_undefined_options setattr(self, dst_option, getattr(src_cmd_obj, src_option)) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 103, in __getattr__ raise AttributeError(attr) AttributeError: install_layout ``` * corrections * test installers in various Linux Dockers * prep docker images with basic tools * --no-confirm for pacman * debug * debug * debug * stop installing git * Revert "stop installing git" This reverts commit 4b19f1601d2de82a73fd1cae11259199348c80f6. * checkout after installing git * pacman wants --noconfirm * Revert "debug" This reverts commit e0a2aed04164eae262683f60d524af3d3633d556. * Revert "debug" This reverts commit 3833da281a9684389e0cfb5a3ad28104fffb3f03. * Revert "debug" This reverts commit 705a3c5d6b296de1970dfff29b27ff1b616a78ea. * add bookworm * add install.sh -a for pacman --noconfirm automated installs * fix * fix * revert install_layout workaround * Remove =3.9* from debian python3-venv installation Already discussed this with @wallentx related to the addition in https://github.com/Chia-Network/chia-blockchain/pull/9633/files#diff-043df5bdbf6639d7a77e1d44c5226fd7371e5259a1e4df3a0dd5d64c30dca44fR85. * add fedora 33 and 34 * nicer naming * fedora not fedor * add ubuntu:bionic * also chia --help * add amazon * Amazon wants sudo * . * use git-core ppa for git in bionic * less sudo * oops
2022-01-24 08:46:16 +03:00
sudo pacman ${PACMAN_AUTOMATED} -S --needed git
elif type yum && [ ! -f "/etc/redhat-release" ] && [ ! -f "/etc/centos-release" ] && [ ! -f "/etc/fedora-release" ]; then
# AMZN 2
echo "Installing on Amazon Linux 2."
AMZN2_PY_LATEST=$(yum --showduplicates list python3 | expand | grep -P '(?!.*3.10.*)x86_64|(?!.*3.10.*)aarch64' | tail -n 1 | awk '{print $2}')
AMZN2_ARCH=$(uname -m)
sudo yum install -y python3-"$AMZN2_PY_LATEST"."$AMZN2_ARCH" git
elif type yum && [ -f "/etc/redhat-release" ] || [ -f "/etc/centos-release" ] || [ -f "/etc/fedora-release" ]; then
# CentOS or Redhat or Fedora
echo "Installing on CentOS/Redhat/Fedora."
fi
elif [ "$(uname)" = "Darwin" ] && ! type brew >/dev/null 2>&1; then
echo "Installation currently requires brew on MacOS - https://brew.sh/"
elif [ "$(uname)" = "OpenBSD" ]; then
export MAKE=${MAKE:-gmake}
export BUILD_VDF_CLIENT=${BUILD_VDF_CLIENT:-N}
elif [ "$(uname)" = "FreeBSD" ]; then
export MAKE=${MAKE:-gmake}
export BUILD_VDF_CLIENT=${BUILD_VDF_CLIENT:-N}
2020-02-07 08:14:54 +03:00
fi
find_python() {
set +e
unset BEST_VERSION
for V in 39 3.9 38 3.8 37 3.7 3; do
if command -v python$V >/dev/null; then
if [ "$BEST_VERSION" = "" ]; then
BEST_VERSION=$V
if [ "$BEST_VERSION" = "3" ]; then
PY3_VERSION=$(python$BEST_VERSION --version | cut -d ' ' -f2)
if [[ "$PY3_VERSION" =~ 3.10.* ]]; then
echo "Chia requires Python version <= 3.9.9"
echo "Current Python version = $PY3_VERSION"
exit 1
fi
fi
fi
fi
done
echo $BEST_VERSION
set -e
}
if [ "$INSTALL_PYTHON_VERSION" = "" ]; then
INSTALL_PYTHON_VERSION=$(find_python)
fi
# This fancy syntax sets INSTALL_PYTHON_PATH to "python3.7", unless
# INSTALL_PYTHON_VERSION is defined.
# If INSTALL_PYTHON_VERSION equals 3.8, then INSTALL_PYTHON_PATH becomes python3.8
INSTALL_PYTHON_PATH=python${INSTALL_PYTHON_VERSION:-3.7}
echo "Python version is $INSTALL_PYTHON_VERSION"
$INSTALL_PYTHON_PATH -m venv venv
2020-03-28 03:52:24 +03:00
if [ ! -f "activate" ]; then
ln -s venv/bin/activate .
2020-03-28 03:52:24 +03:00
fi
EXTRAS=${EXTRAS%,}
if [ -n "${EXTRAS}" ]; then
EXTRAS=[${EXTRAS}]
fi
# shellcheck disable=SC1091
. ./activate
2020-03-27 05:50:34 +03:00
# pip 20.x+ supports Linux binary wheels
python -m pip install --upgrade pip
python -m pip install wheel
2020-04-06 10:19:39 +03:00
#if [ "$INSTALL_PYTHON_VERSION" = "3.8" ]; then
# This remains in case there is a diversion of binary wheels
python -m pip install --extra-index-url https://pypi.chia.net/simple/ miniupnpc==2.2.2
python -m pip install -e ."${EXTRAS}" --extra-index-url https://pypi.chia.net/simple/
Separate timelord, add Windows/CentOS/AMZN (#62) 1.1.1 release * windows build instructions * install.sh newline fix \n wasn't as cross platform as it should be so reverted to an extra echo * Add CentOS to README.md Full CentOS 7.7 install instructions * mention blspy * confirmed boost 1.67.0 works on Ubuntu * Update README.md. * Fix problem with zip download. * Remove scm warning Revert install instructions due to scm fix * Update README and install scripts to separate timelord installation Do not install VDF server and its dependencies in install.sh, create a separate script install_timelord.sh for that. * Move installation of VDF server dependencies to install_timelord.sh * First and broken attempt at CentOS install * Working CentOS 7.7 install * typos in timelord explanation * Timlord/VDF build instructions Specifics for CentOS and MacOS * Various install tips and tricks * spelling error * Add AMZN linux 2 install * Add AMZN linux 2 timelord install Also clean up base install instructions * Combine TL for AMZN and CentOS * Nits for AMZN and CentOS * CentOS, AMZN timelord paralleling * Fix header layouts * Replace VDF server compilation scripts with Makefile * layout improvements * fast_vdf: Remove unused files * Partial ARM install support * missing l in lib * Fleshed out Windows/WSL installs And verified the method for upgrade to 19.x * Move MacOS install fullnode to bottom * Change to mongo "system-wide" * Add mongo start to WSL * Add actual upgrade for WSL/Ubuntu Co-authored-by: Mariano Sorgente <sorgente711@gmail.com> Co-authored-by: Rostislav Skudnov <skrostislav@gmail.com> Co-authored-by: Richard Kiss <him@richardkiss.com> Co-authored-by: wjblanke <wjb2002@flex.com>
2019-12-25 22:18:07 +03:00
echo ""
echo "Chia blockchain install.sh complete."
echo "For assistance join us on Keybase in the #support chat channel:"
echo "https://keybase.io/team/chia_network.public"
2020-03-27 20:37:22 +03:00
echo ""
echo "Try the Quick Start Guide to running chia-blockchain:"
echo "https://github.com/Chia-Network/chia-blockchain/wiki/Quick-Start-Guide"
echo ""
echo "To install the GUI type 'sh install-gui.sh' after '. ./activate'."
echo ""
echo "Type '. ./activate' and then 'chia init' to begin."