mirror of https://github.com/zeromq/pyzmq.git
32 lines
1.0 KiB
Ruby
32 lines
1.0 KiB
Ruby
#e -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
# This will setup a clean Ubuntu1404 LTS env
|
|
|
|
$script = <<SCRIPT
|
|
add-apt-repository ppa:fkrull/deadsnakes-python2.7
|
|
apt-get update
|
|
apt-get install -y python-pip python3-pip python-dev git htop virtualenvwrapper python2.7 python-virtualenv python-support cython \
|
|
git build-essential libtool pkg-config autotools-dev autoconf automake cmake uuid-dev libpcre3-dev valgrind \
|
|
libffi-dev
|
|
SCRIPT
|
|
|
|
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
|
VAGRANTFILE_API_VERSION = "2"
|
|
VAGRANTFILE_LOCAL = 'Vagrantfile.local'
|
|
|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
config.vm.box = 'ubuntu/trusty64'
|
|
config.vm.provision "shell", inline: $script
|
|
|
|
config.vm.provider :virtualbox do |vb|
|
|
vb.customize ["modifyvm", :id, "--cpus", "2", "--ioapic", "on", "--memory", "512" ]
|
|
vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
|
|
end
|
|
|
|
if File.file?(VAGRANTFILE_LOCAL)
|
|
external = File.read VAGRANTFILE_LOCAL
|
|
eval external
|
|
end
|
|
end
|