Skip to content

Commit ac4d614

Browse files
committed
Add instructions to install Pyenv's dependencies
1 parent 10f1bf9 commit ac4d614

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/install-dependencies.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,12 @@ git clone https://github.com/pyenv/pyenv.git ~/.pyenv
2727
echo 'export PYENV_ROOT="${HOME}/.pyenv"' >> ~/.bashrc
2828
echo 'export PATH="${PYENV_ROOT}/bin:${PATH}"' >> ~/.bashrc
2929
git clone https://github.com/pyenv/pyenv-virtualenv.git ${HOME}/.pyenv/plugins/pyenv-virtualenv
30+
31+
echo "Installing Pyenv's dependencies"
32+
if [[ ! -z $(which yum) ]]; then
33+
sudo yum install -y patch
34+
elif [[ ! -z $(which apt-get) ]]; then
35+
sudo apt-get install -y patch
36+
else
37+
echo "Operating system not supported, please install the dependencies manually"
38+
fi

0 commit comments

Comments
 (0)