mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-21 13:47:16 +00:00
fix pyenv initialisation, fixes #5798
pyenv changed the required steps to correctly initialize.
This commit is contained in:
parent
cb0db339d3
commit
1f85cf8756
1 changed files with 7 additions and 4 deletions
11
Vagrantfile
vendored
11
Vagrantfile
vendored
|
@ -119,11 +119,14 @@ end
|
|||
|
||||
def install_pyenv(boxname)
|
||||
return <<-EOF
|
||||
curl -s -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
|
||||
echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bash_profile
|
||||
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
|
||||
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile
|
||||
echo 'export PYTHON_CONFIGURE_OPTS="--enable-shared"' >> ~/.bash_profile
|
||||
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
|
||||
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
|
||||
. ~/.bash_profile
|
||||
curl -s -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
|
||||
echo 'eval "$(pyenv init --path)"' >> ~/.bash_profile
|
||||
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
|
||||
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
|
||||
EOF
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue