Last active
December 10, 2015 15:45
-
-
Save aisk/efd38d84575ed7087280 to your computer and use it in GitHub Desktop.
Pyston develop environment vagrant box
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
git_user_name = `git config --get user.name`.strip | |
git_user_email = `git config --get user.email`.strip | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.box_check_update = false | |
config.vm.synced_folder ".", "/home/vagrant/pyston" | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = "2048" | |
vb.cpus = 4 | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo apt-get update | |
sudo apt-get install -yq git | |
sudo apt-get install -yq cmake | |
sudo apt-get install -yq ninja-build | |
sudo apt-get install -yq ccache | |
sudo apt-get install -yq libncurses5-dev | |
sudo apt-get install -yq liblzma-dev | |
sudo apt-get install -yq libreadline-dev | |
sudo apt-get install -yq libgmp3-dev | |
sudo apt-get install -yq libmpfr-dev | |
sudo apt-get install -yq autoconf | |
sudo apt-get install -yq libtool | |
sudo apt-get install -yq python-dev | |
sudo apt-get install -yq texlive-extra-utils | |
sudo apt-get install -yq clang | |
sudo apt-get install -yq libssl-dev | |
sudo apt-get install -yq libsqlite3-dev | |
sudo apt-get install -yq pkg-config | |
sudo apt-get install -yq libbz2-dev | |
sudo apt-get install -yq gdb | |
sudo apt-get install -yq zsh | |
SHELL | |
config.vm.provision "shell", privileged: false, inline: <<-SHELL | |
git config --global user.email "#{git_user_email}" | |
git config --global user.name "#{git_user_name}" | |
git clone https://github.com/llvm-mirror/llvm.git ~/pyston_deps/llvm-trunk | |
git clone https://github.com/llvm-mirror/clang.git ~/pyston_deps/llvm-trunk/tools/clang | |
cd ~/pyston && git submodule update --init --recursive build_deps | |
cd ~/pyston && make llvm_up | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put this Vagrantfile to Pyston's root directory, and run
vagrant up
will get an Pyston development environment. Wish this can help someone new to Pyston.