mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Update setup.sh queries to not ask redundant questions
This commit is contained in:
parent
8c9de445e7
commit
21618594b2
18
setup.sh
18
setup.sh
|
@ -51,16 +51,19 @@ function updateenv() {
|
||||||
echo "pip install in-progress. Please wait..."
|
echo "pip install in-progress. Please wait..."
|
||||||
# Setuptools 65.5.0 is the last version that can install gym==0.21.0
|
# Setuptools 65.5.0 is the last version that can install gym==0.21.0
|
||||||
${PYTHON} -m pip install --upgrade pip wheel setuptools==65.5.1
|
${PYTHON} -m pip install --upgrade pip wheel setuptools==65.5.1
|
||||||
read -p "Do you want to install dependencies for dev [y/N]? "
|
REQUIREMENTS_HYPEROPT=""
|
||||||
|
REQUIREMENTS_PLOT=""
|
||||||
|
REQUIREMENTS_FREQAI=""
|
||||||
|
REQUIREMENTS_FREQAI_RL=""
|
||||||
|
REQUIREMENTS=requirements.txt
|
||||||
|
|
||||||
|
read -p "Do you want to install dependencies for development (Performs a full install with all dependencies) [y/N]? "
|
||||||
dev=$REPLY
|
dev=$REPLY
|
||||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||||
then
|
then
|
||||||
REQUIREMENTS=requirements-dev.txt
|
REQUIREMENTS=requirements-dev.txt
|
||||||
else
|
else
|
||||||
REQUIREMENTS=requirements.txt
|
# requirements-dev.txt includes all the below requirements already, so further questions are pointless.
|
||||||
fi
|
|
||||||
REQUIREMENTS_HYPEROPT=""
|
|
||||||
REQUIREMENTS_PLOT=""
|
|
||||||
read -p "Do you want to install plotting dependencies (plotly) [y/N]? "
|
read -p "Do you want to install plotting dependencies (plotly) [y/N]? "
|
||||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||||
then
|
then
|
||||||
|
@ -78,20 +81,17 @@ function updateenv() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
REQUIREMENTS_FREQAI=""
|
|
||||||
REQUIREMENTS_FREQAI_RL=""
|
|
||||||
read -p "Do you want to install dependencies for freqai [y/N]? "
|
read -p "Do you want to install dependencies for freqai [y/N]? "
|
||||||
dev=$REPLY
|
|
||||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||||
then
|
then
|
||||||
REQUIREMENTS_FREQAI="-r requirements-freqai.txt --use-pep517"
|
REQUIREMENTS_FREQAI="-r requirements-freqai.txt --use-pep517"
|
||||||
read -p "Do you also want dependencies for freqai-rl (~700mb additional space required) [y/N]? "
|
read -p "Do you also want dependencies for freqai-rl (~700mb additional space required) [y/N]? "
|
||||||
dev=$REPLY
|
|
||||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||||
then
|
then
|
||||||
REQUIREMENTS_FREQAI="-r requirements-freqai-rl.txt"
|
REQUIREMENTS_FREQAI="-r requirements-freqai-rl.txt"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
${PYTHON} -m pip install --upgrade -r ${REQUIREMENTS} ${REQUIREMENTS_HYPEROPT} ${REQUIREMENTS_PLOT} ${REQUIREMENTS_FREQAI} ${REQUIREMENTS_FREQAI_RL}
|
${PYTHON} -m pip install --upgrade -r ${REQUIREMENTS} ${REQUIREMENTS_HYPEROPT} ${REQUIREMENTS_PLOT} ${REQUIREMENTS_FREQAI} ${REQUIREMENTS_FREQAI_RL}
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user