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
33dfe9b8
Commit
33dfe9b8
authored
Feb 14, 2018
by
Hannes Diedrich
Browse files
Improved install script.
parent
ea2ed9ff
Pipeline
#2588
passed with stages
in 16 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
install_py_gts2_client.sh
View file @
33dfe9b8
...
...
@@ -4,66 +4,52 @@ 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
"Please make sure that you have sufficient free space in ths installation path (at least
2
GB)."
echo
"Please make sure that you have sufficient free space in ths installation path (at least
3
GB)."
echo
"###################################"
current_path
=
$(
pwd
)
read
-p
"Please enter path for the python installation: "
inst_path
cd
${
inst_path
}
#conda_inst_name=Anaconda3-5.0.1-Linux-x86_64.sh
#echo "#### Downloading Anaconda3.... ####"
#wget https://repo.continuum.io/archive/${conda_inst_name}
#chmod 755 ${conda_inst_name}
#echo "#### Installing Anaconda3.... ####"
#./${conda_inst_name} -p ${inst_path}/anaconda3 -b
#rm -f ${conda_inst_name}
#echo "... Ready"
conda_vers
=
"miniconda3"
#
url="https://repo.continuum.io/miniconda/"
#
conda_inst_name="Miniconda3-latest-Linux-x86_64.sh"
#
echo "#### Downloading ${conda_vers}.... ####"
#
wget ${url}${conda_inst_name}
#
chmod 755 ${conda_inst_name}
#
echo "#### Installing ${conda_vers}.... ####"
#
./${conda_inst_name} -p ${inst_path}/${conda_vers} -b
#
rm -f ${conda_inst_name}
#
echo "... Ready"
url
=
"https://repo.continuum.io/miniconda/"
conda_inst_name
=
"Miniconda3-latest-Linux-x86_64.sh"
echo
"#### Downloading
${
conda_vers
}
.... ####"
wget
${
url
}${
conda_inst_name
}
chmod
755
${
conda_inst_name
}
echo
"#### Installing
${
conda_vers
}
.... ####"
./
${
conda_inst_name
}
-p
${
inst_path
}
/
${
conda_vers
}
-b
rm
-f
${
conda_inst_name
}
echo
"... Ready"
env_name
=
gts2_client
echo
"Creating a conda environment named:
${
env_name
}
..."
#export PATH=${inst_path}/anaconda3/bin/:$PATH
#export PYTHONPATH=${inst_path}/anaconda3/lib/python3.6/site-packages/
export
PATH
=
${
inst_path
}
/
${
conda_vers
}
/bin/:
$PATH
export
PYTHONPATH
=
${
inst_path
}
/
${
conda_vers
}
/lib/python3.6/site-packages/
conda create
-y
-n
${
env_name
}
conda create
-y
-n
${
env_name
}
python
=
3
echo
"... Ready"
#echo $PATH
#echo $PYTHONPATH
echo
"Installing necessary packages ..."
source
activate
${
env_name
}
echo
${
current_path
}
/gts2_client_conda_install.yml
conda
env
update
-n
${
env_name
}
-f
${
current_path
}
/gts2_client_conda_install.yml
echo
"... Ready"
echo
"Installing gts2_client ..."
cd
${
current_path
}
source
activate
${
env_name
}
python setup.py
install
echo
"... Ready"
echo
"###############################"
echo
"Congratulations! Anaconda and all necessary packages are installed"
echo
" "
echo
"###############################"
echo
"In order to load your environment and run gts2_client, 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
"Set the path
env-
variables right (you can also add the following lines to your
$HOME
/.bashrc :"
echo
"--------"
echo
"export PATH=
${
inst_path
}
/
${
conda_vers
}
/bin/:
$PATH
"
echo
"export PYTHONPATH=
${
inst_path
}
/
${
conda_vers
}
/lib/python3.6/site-packages/
$PYTHONPATH
"
echo
"export PYTHONPATH=
${
inst_path
}
/
${
conda_vers
}
/lib/python3.6/site-packages/
:
$PYTHONPATH
"
echo
"export LD_LIBRARY_PATH=
${
inst_path
}
/
${
conda_vers
}
/lib"
echo
"--------"
echo
"### 2. ###"
...
...
@@ -72,5 +58,3 @@ echo "source activate ${env_name}"
echo
" "
echo
"... Now you can use the gts2_client ..."
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