Commit 59da11cf authored by Hannes Diedrich's avatar Hannes Diedrich
Browse files

Improved install script.

parent daabfa96
Pipeline #2582 canceled with stages
in 11 seconds
#!/usr/bin/env bash
current_path=$(pwd)
echo "###################################"
echo "This is the installation routine for installing anaconda and necessary packages for gts2_client."
echo "Depending on teh load of your machine, this process can take up to an hour, so lean back and relax!"
echo "All Files are stored into your installation path which you provide now."
echo "###################################"
read -p "Please enter path for python installation: " inst_path
read -p "Please enter path for the python installation: " inst_path
cd ${inst_path}
current_path=$(pwd)
conda_inst_name=Anaconda3-5.0.1-Linux-x86_64.sh
echo "#### Downloading Anaconda.... ####"
echo "#### Downloading Anaconda3.... ####"
wget https://repo.continuum.io/archive/${conda_inst_name}
chmod 755 ${conda_inst_name}
echo "#### Installing Anaconda.... ####"
echo "#### Installing Anaconda3.... ####"
./${conda_inst_name} -p ${inst_path}/anaconda3 -b
rm -f ${conda_inst_name}
echo "... Ready"
echo "Creatin a conda environment named: ${env_name} ..."
export PATH=${inst_path}/anaconda3/bin/:$PATH
export PYTHONPATH=${inst_path}/anaconda3/lib/python3.6/site-packages/
env_name=$(whoami)
echo "conda create -n ${env_name}"
conda create -y -n ${env_name}
echo "... Ready"
echo "Installing neccesarry packages"
echo "Installing necessary packages ..."
conda env update -n ${env_name} -f ${current_path}/gts2_client_conda_install.yml
echo "... Ready"
echo "Installing gts2_client ..."
python setup.py
echo "... Ready"
echo "... Anaconda and all necessary packages are installed"
echo "Congratulations! Anaconda and all necessary packages are installed"
ehco " "
echo "###############################"
echo "To load your environment run the following commands in your bash shell:"
echo " "
echo "### 1. ### "
echo "### 1. ###"
echo "Set the path variables right (you can also add the following lines to your $HOME/.bashrc :"
echo "--------"
echo "export PATH=${inst_path}/anaconda3/bin/:$PATH"
echo "export PYTHONPATH=${inst_path}/anaconda3/lib/python3.6/site-packages/"
echo "export PATH=${inst_path}/anaconda3/bin/:$PATH"
echo "export LD_LIBRARY_PATH=${inst_path}/anaconda3/lib"
echo " "
echo "### 2. ### "
echo "--------"
echo "### 2. ###"
echo "Activate your conda environment:"
echo "source activate ${env_name}"
echo " "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment