Update setup.sh with some specifics

This commit is contained in:
Matthias 2020-11-30 20:56:14 +01:00
parent 202ca88e23
commit 95b24ba8a9
2 changed files with 22 additions and 10 deletions

View File

@ -90,13 +90,13 @@ Each time you open a new terminal, you must run `source .env/bin/activate`.
## Custom Installation ## Custom Installation
We've included/collected install instructions for Ubuntu 16.04, MacOS, and Windows. These are guidelines and your success may vary with other distros. We've included/collected install instructions for Ubuntu, MacOS, and Windows. These are guidelines and your success may vary with other distros.
OS Specific steps are listed first, the [Common](#common) section below is necessary for all systems. OS Specific steps are listed first, the [Common](#common) section below is necessary for all systems.
!!! Note !!! Note
Python3.6 or higher and the corresponding pip are assumed to be available. Python3.6 or higher and the corresponding pip are assumed to be available.
=== "Ubuntu 16.04" === "Ubuntu/Debian"
#### Install necessary dependencies #### Install necessary dependencies
```bash ```bash

View File

@ -61,13 +61,25 @@ function updateenv() {
read -p "Do you want to install dependencies for dev [y/N]? " read -p "Do you want to install dependencies for dev [y/N]? "
if [[ $REPLY =~ ^[Yy]$ ]] if [[ $REPLY =~ ^[Yy]$ ]]
then then
${PYTHON} -m pip install --upgrade -r requirements-dev.txt REQUIREMENTS=requirements-dev.txt
else else
${PYTHON} -m pip install --upgrade -r requirements.txt REQUIREMENTS=requirements.txt
echo "Dev dependencies ignored." fi
SYS_ARCH=$(uname -m)
if [ "${SYS_ARCH}" == "armv7l" ]; then
echo "Detected Raspberry, installing cython."
${PYTHON} -m pip install --upgrade cython
fi
${PYTHON} -m pip install --upgrade -r ${REQUIREMENTS}
if [ $? -ne 0 ]; then
echo "Failed installing dependencies"
exit 1
fi fi
${PYTHON} -m pip install -e . ${PYTHON} -m pip install -e .
if [ $? -ne 0 ]; then
echo "Failed installing Freqtrade"
exit 1
fi
echo "pip install completed" echo "pip install completed"
echo echo
} }
@ -149,7 +161,7 @@ function reset() {
fi fi
if [ -d ".env" ]; then if [ -d ".env" ]; then
echo "- Delete your previous virtual env" echo "- Deleting your previous virtual env"
rm -rf .env rm -rf .env
fi fi
echo echo
@ -253,7 +265,7 @@ function install() {
echo "Run the bot !" echo "Run the bot !"
echo "-------------------------" echo "-------------------------"
echo "You can now use the bot by executing 'source .env/bin/activate; freqtrade <subcommand>'." echo "You can now use the bot by executing 'source .env/bin/activate; freqtrade <subcommand>'."
echo "You can see the list of available bot subcommands by executing 'source .env/bin/activate; freqtrade --help'." echo "You can see the list of available bot sub-commands by executing 'source .env/bin/activate; freqtrade --help'."
echo "You verify that freqtrade is installed successfully by running 'source .env/bin/activate; freqtrade --version'." echo "You verify that freqtrade is installed successfully by running 'source .env/bin/activate; freqtrade --version'."
} }