Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gts2
gts2_client
Commits
59da11cf
Commit
59da11cf
authored
Feb 13, 2018
by
Hannes Diedrich
Browse files
Improved install script.
parent
daabfa96
Pipeline
#2582
canceled with stages
in 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
install_py_gts2_client.sh
View file @
59da11cf
#!/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 Anaconda
3
.... ####"
wget https://repo.continuum.io/archive/
${
conda_inst_name
}
chmod
755
${
conda_inst_name
}
echo
"#### Installing Anaconda.... ####"
echo
"#### Installing Anaconda
3
.... ####"
./
${
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 nec
c
esar
r
y packages"
echo
"Installing nece
s
sary 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
" "
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment