Skip to content

Commit bb9bdf7

Browse files
committed
Add pyenv to install-dependencies.sh script
1 parent 58557f6 commit bb9bdf7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/install-dependencies.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -eu
44
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
55

6-
6+
echo "Installing sbt"
77
if [[ ! -z $(which yum) ]]; then
88
sudo rm -f /etc/yum.repos.d/bintray-rpm.repo
99
curl -L https://www.scala-sbt.org/sbt-rpm.repo > sbt-rpm.repo
@@ -21,3 +21,10 @@ elif [[ ! -z $(which apt-get) ]]; then
2121
else
2222
echo "Operating system not supported, please install the dependencies manually"
2323
fi
24+
25+
echo "Installing Pyenv"
26+
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
27+
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
28+
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
29+
. ~/.bash_profile
30+
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv

0 commit comments

Comments
 (0)