mirror of https://github.com/borgbackup/borg.git
vagrant: add exe location to PATH when we build an exe
This commit is contained in:
parent
8d89ee981c
commit
c1f9ed991b
|
@ -227,7 +227,7 @@ end
|
||||||
def install_pyenv(boxname)
|
def install_pyenv(boxname)
|
||||||
script = <<-EOF
|
script = <<-EOF
|
||||||
curl -s -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
|
curl -s -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
|
||||||
echo 'export PATH="$HOME/.pyenv/bin:/vagrant/borg:$PATH"' >> ~/.bash_profile
|
echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bash_profile
|
||||||
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
|
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
|
||||||
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile
|
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile
|
||||||
echo 'export PYTHON_CONFIGURE_OPTS="--enable-shared"' >> ~/.bash_profile
|
echo 'export PYTHON_CONFIGURE_OPTS="--enable-shared"' >> ~/.bash_profile
|
||||||
|
@ -320,6 +320,7 @@ def build_binary_with_pyinstaller(boxname)
|
||||||
. borg-env/bin/activate
|
. borg-env/bin/activate
|
||||||
cd borg
|
cd borg
|
||||||
pyinstaller --clean --distpath=/vagrant/borg scripts/borg.exe.spec
|
pyinstaller --clean --distpath=/vagrant/borg scripts/borg.exe.spec
|
||||||
|
echo 'export PATH="/vagrant/borg:$PATH"' >> ~/.bash_profile
|
||||||
EOF
|
EOF
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue