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
d2654cc6
Commit
d2654cc6
authored
Feb 14, 2018
by
Hannes Diedrich
Browse files
Improved install script.
parent
6939beb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
gts2_client_conda_install.yml
View file @
d2654cc6
name
:
roo
t
name
:
gts2_clien
t
channels
:
-
conda-forge
dependencies
:
...
...
install_py_gts2_client.sh
View file @
d2654cc6
...
...
@@ -4,52 +4,73 @@ 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
"###################################"
current_path
=
$(
pwd
)
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 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"
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
)
#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"
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
}
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 ..."
python setup.py
cd
${
current_path
}
python setup.py
install
echo
"... Ready"
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
"###############################"
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
"--------"
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
"export PATH=
${
inst_path
}
/
${
conda_vers
}
/bin/:
$PATH
"
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. ###"
echo
"Activate your conda environment:"
echo
"source activate
${
env_name
}
"
echo
" "
echo
"Now you can use the gts2_client "
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