Commit daabfa96 authored by Hannes Diedrich's avatar Hannes Diedrich
Browse files

Improved install script.

parent d784a555
Pipeline #2578 passed with stages
in 23 minutes and 19 seconds
......@@ -8,6 +8,7 @@ dependencies:
- gdal
- ipython
- pip
- libssh2
- pip:
- netcdf4
......
......@@ -3,63 +3,46 @@
current_path=$(pwd)
read -p "Please enter path for python installation: " inst_path
cd ${inst_path}
#echo "#### Downloading Miniconda.... ####"
#wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
#chmod 755 Miniconda3-latest-Linux-x86_64.sh
#echo "#### Installing Miniconda.... ####"
#./Miniconda3-latest-Linux-x86_64.sh -p ${inst_path}/miniconda3 -b
#rm -f Miniconda3-latest-Linux-x86_64.sh
#echo "#### Installing additional packages.... ####"
#source ${inst_path}/miniconda3/bin/activate
#echo "#+#+#+#+ sourced"
#
#echo $(which python)
#echo $PATH
#echo "#+#+#+#+ "
#conda --version
#conda update -y conda
#conda --version
#rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
#echo "#+#+#+#+ updated"
#
#echo $(which python)
#echo $PATH
#conda --version
#echo "#+#+#+#+ "
#conda env update -f ${current_path}/gts2_client_conda_install.yml
#rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
#echo "#+#+#+#+ installed"
conda_inst_name=Anaconda3-5.0.1-Linux-x86_64.sh
echo "#### Downloading Anaconda.... ####"
wget https://repo.continuum.io/archive/${conda_inst_name}
chmod 755 ${conda_inst_name}
echo "#### Installing Anaconda.... ####"
./${conda_inst_name} -p ${inst_path}/anaconda3 -b
rm -f ${conda_inst_name}
echo "... Ready"
export PATH=${inst_path}/anaconda3/bin/:$PATH
export PYTHONPATH=${inst_path}/anaconda3/lib/python3.6/site-packages/
#source ${inst_path}/anaconda3/bin/activate
env_name=$(whoami)
echo "conda create -n ${env_name}"
conda create -y -n ${env_name}
echo "Installing neccesarry packages"
conda env update -n ${env_name} -f ${current_path}/gts2_client_conda_install.yml
echo "Installing gts2_client ..."
python setup.py
echo "... Ready"
echo "... 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 "Set the path variables right (you can also add the following lines to your $HOME/.bashrc :"
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 "Activate your conda environment:"
echo "source activate ${env_name}"
source activate ${env_name}
echo " "
echo "Now you can use the gts2_client "
#echo "#### Installing gts2_client.... ####"
#cd ${current_path}
#python setup.py install
Supports Markdown
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