Sha256: 733f6f7eb491efbd050d5a32c0cf9abb1a1055d269fef14083e332d1fc28cb81
Contents?: true
Size: 1.27 KB
Versions: 3
Compression:
Stored size: 1.27 KB
Contents
module VagrantPlugins module Ventriloquist module Cap module Debian module Python def self.pyenv_install(machine) machine.communicate.tap do |comm| if ! comm.test('test -d $HOME/.pyenv') machine.env.ui.info('Installing pyenv dependencies') comm.sudo('sudo apt-get install -y build-essential libreadline-dev libssl-dev libsqlite3-dev libbz2-dev') machine.env.ui.info('Installing pyenv') comm.execute <<-INSTALL git clone git://github.com/yyuu/pyenv.git $HOME/.pyenv echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile echo 'eval "$(pyenv init -)"' >> ~/.profile INSTALL end end end def self.pyenv_install_python(machine, version) if ! machine.communicate.test("pyenv versions | grep #{version}") machine.env.ui.info("Installing Python #{version}") machine.communicate.execute("pyenv install #{version}") machine.communicate.execute("pyenv global #{version}") end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ventriloquist-0.3.2 | lib/ventriloquist/cap/debian/python.rb |
ventriloquist-0.3.1 | lib/ventriloquist/cap/debian/python.rb |
ventriloquist-0.3.0 | lib/ventriloquist/cap/debian/python.rb |