From 7c03ca5f76b49aaa33a41c9f798ebc1aac9f2119 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 11 Jul 2021 23:44:05 +0200 Subject: [PATCH] vagrant: fix install_pyenv same code as in master now. --- Vagrantfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index a773b2d7d..a5edfc658 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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)