mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-03 18:27:01 +00:00
pyinstaller: automatically builds bootloader if missing
This commit is contained in:
parent
1c3ec747d0
commit
007d4797d8
1 changed files with 7 additions and 18 deletions
25
Vagrantfile
vendored
25
Vagrantfile
vendored
|
@ -279,27 +279,16 @@ def install_borg(fuse)
|
||||||
return script
|
return script
|
||||||
end
|
end
|
||||||
|
|
||||||
def install_pyinstaller(bootloader)
|
def install_pyinstaller()
|
||||||
script = <<-EOF
|
return <<-EOF
|
||||||
. ~/.bash_profile
|
. ~/.bash_profile
|
||||||
cd /vagrant/borg
|
cd /vagrant/borg
|
||||||
. borg-env/bin/activate
|
. borg-env/bin/activate
|
||||||
git clone https://github.com/thomaswaldmann/pyinstaller.git
|
git clone https://github.com/thomaswaldmann/pyinstaller.git
|
||||||
cd pyinstaller
|
cd pyinstaller
|
||||||
git checkout v3.2.1
|
git checkout v3.2.1
|
||||||
|
python setup.py install
|
||||||
EOF
|
EOF
|
||||||
if bootloader
|
|
||||||
script += <<-EOF
|
|
||||||
# build bootloader, if it is not included
|
|
||||||
cd bootloader
|
|
||||||
python ./waf all
|
|
||||||
cd ..
|
|
||||||
EOF
|
|
||||||
end
|
|
||||||
script += <<-EOF
|
|
||||||
pip install -e .
|
|
||||||
EOF
|
|
||||||
return script
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_binary_with_pyinstaller(boxname)
|
def build_binary_with_pyinstaller(boxname)
|
||||||
|
@ -436,7 +425,7 @@ Vagrant.configure(2) do |config|
|
||||||
b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("wheezy32")
|
b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("wheezy32")
|
||||||
b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("wheezy32")
|
b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("wheezy32")
|
||||||
b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg(true)
|
b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg(true)
|
||||||
b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller(false)
|
b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller()
|
||||||
b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("wheezy32")
|
b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("wheezy32")
|
||||||
b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("wheezy32")
|
b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("wheezy32")
|
||||||
end
|
end
|
||||||
|
@ -449,7 +438,7 @@ Vagrant.configure(2) do |config|
|
||||||
b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("wheezy64")
|
b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("wheezy64")
|
||||||
b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("wheezy64")
|
b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("wheezy64")
|
||||||
b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg(true)
|
b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg(true)
|
||||||
b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller(false)
|
b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller()
|
||||||
b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("wheezy64")
|
b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("wheezy64")
|
||||||
b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("wheezy64")
|
b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("wheezy64")
|
||||||
end
|
end
|
||||||
|
@ -463,7 +452,7 @@ Vagrant.configure(2) do |config|
|
||||||
b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("darwin64")
|
b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("darwin64")
|
||||||
b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("darwin64")
|
b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("darwin64")
|
||||||
b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg(true)
|
b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg(true)
|
||||||
b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller(false)
|
b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller()
|
||||||
b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("darwin64")
|
b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("darwin64")
|
||||||
b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("darwin64")
|
b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("darwin64")
|
||||||
end
|
end
|
||||||
|
@ -481,7 +470,7 @@ Vagrant.configure(2) do |config|
|
||||||
b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("freebsd")
|
b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("freebsd")
|
||||||
b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("freebsd")
|
b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("freebsd")
|
||||||
b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg(true)
|
b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg(true)
|
||||||
b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller(true)
|
b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller()
|
||||||
b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("freebsd")
|
b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("freebsd")
|
||||||
b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("freebsd")
|
b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("freebsd")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue