Ask for hyperopt installation during setup

closes #2871
This commit is contained in:
Matthias 2020-11-30 21:10:11 +01:00
parent 95b24ba8a9
commit 5f70d1f9a7
2 changed files with 13 additions and 3 deletions

View File

@ -114,7 +114,7 @@ OS Specific steps are listed first, the [Common](#common) section below is neces
``` bash
sudo apt-get install python3-venv libatlas-base-dev
# Use pywheels.org to speed up installation
sudo echo "[global]\nextra-index-url=https://www.piwheels.org/simple" > sudo tee /etc/pip.conf
sudo echo "[global]\nextra-index-url=https://www.piwheels.org/simple" > tee /etc/pip.conf
git clone https://github.com/freqtrade/freqtrade.git
cd freqtrade

View File

@ -56,6 +56,7 @@ function updateenv() {
exit 1
fi
source .env/bin/activate
SYS_ARCH=$(uname -m)
echo "pip install in-progress. Please wait..."
${PYTHON} -m pip install --upgrade pip
read -p "Do you want to install dependencies for dev [y/N]? "
@ -65,12 +66,21 @@ function updateenv() {
else
REQUIREMENTS=requirements.txt
fi
SYS_ARCH=$(uname -m)
REQUIREMENTS_HYPEROPT=""
if [ "${SYS_ARCH}" != "armv7l" ]; then
# Is not Raspberry
read -p "Do you want to install hyperopt dependencies for dev [y/N]? "
if [[ $REPLY =~ ^[Yy]$ ]]
then
REQUIREMENTS_HYPEROPT="-r requirements-hyperopt.txt"
fi
fi
if [ "${SYS_ARCH}" == "armv7l" ]; then
echo "Detected Raspberry, installing cython."
${PYTHON} -m pip install --upgrade cython
fi
${PYTHON} -m pip install --upgrade -r ${REQUIREMENTS}
${PYTHON} -m pip install --upgrade -r ${REQUIREMENTS} ${REQUIREMENTS_HYPEROPT}
if [ $? -ne 0 ]; then
echo "Failed installing dependencies"
exit 1