mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-19 04:41:50 +00:00
vagrant: produce borg.exe in /vagrant/borg and have it in PATH, so tests will find and test it
This commit is contained in:
parent
a4f136afba
commit
1bbbdea3ac
1 changed files with 2 additions and 2 deletions
4
Vagrantfile
vendored
4
Vagrantfile
vendored
|
@ -137,7 +137,7 @@ 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 'export PATH="$HOME/.pyenv/bin:/vagrant/borg:$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
|
||||
|
@ -232,7 +232,7 @@ def build_binary_with_pyinstaller(boxname)
|
|||
cd /vagrant/borg
|
||||
. borg-env/bin/activate
|
||||
cd borg
|
||||
pyinstaller -F -n borg --hidden-import=logging.config borg/__main__.py
|
||||
pyinstaller -F -n borg.exe --distpath=/vagrant/borg --clean --hidden-import=logging.config borg/__main__.py
|
||||
EOF
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue