mirror of
https://github.com/borgbackup/borg.git
synced 2026-05-28 04:03:21 -04:00
vagrant: fix install_pyenv
same code as in master now.
This commit is contained in:
parent
7cfb03a67c
commit
7c03ca5f76
1 changed files with 8 additions and 6 deletions
14
Vagrantfile
vendored
14
Vagrantfile
vendored
|
|
@ -199,14 +199,16 @@ def install_cygwin_venv
|
|||
end
|
||||
|
||||
def install_pyenv(boxname)
|
||||
script = <<-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
|
||||
return <<-EOF
|
||||
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
|
||||
return script
|
||||
end
|
||||
|
||||
def fix_pyenv_darwin(boxname)
|
||||
|
|
|
|||
Loading…
Reference in a new issue