From 27bc9d9156dfddb9b855cdd030ba29511f62fec7 Mon Sep 17 00:00:00 2001 From: Jaydev Mahadevan Date: Thu, 15 Nov 2012 19:26:07 -0600 Subject: [PATCH 1/2] Add orzata virtualenv and add some packages to it. --- recipes/default.rb | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/recipes/default.rb b/recipes/default.rb index 47e2a20..25b0b6c 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -20,4 +20,45 @@ include_recipe "python::#{node['python']['install_method']}" include_recipe "python::pip" -include_recipe "python::virtualenv" \ No newline at end of file +include_recipe "python::virtualenv" + +venv_path = "/home/vagrant/.virtualenvs/orzata" + +python_virtualenv venv_path do + owner "vagrant" + group "vagrant" + action :create +end + +python_pip "django" do + virtualenv venv_path + version "1.4.2" + action :install +end + +python_pip "virtualenvwrapper" do + virtualenv venv_path + action :install +end + +python_pip "ipdb" do + virtualenv venv_path + version "0.6.1" + action :install +end + +python_pip "ipython" do + virtualenv venv_path + version "0.10.2" + action :install +end + +python_pip "psycopg2" do + virtualenv venv_path + action :install +end + +python_pip "numpy" do + virtualenv venv_path + action :install +end From 2d7ef86b1a099c9e10318d5202c7caac45cc61dd Mon Sep 17 00:00:00 2001 From: Jaydev Mahadevan Date: Fri, 16 Nov 2012 15:58:02 -0600 Subject: [PATCH 2/2] Install virtualenvwrapper globally. --- recipes/default.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/recipes/default.rb b/recipes/default.rb index 25b0b6c..f2d5e20 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -24,6 +24,10 @@ venv_path = "/home/vagrant/.virtualenvs/orzata" +python_pip "virtualenvwrapper" do + action :install +end + python_virtualenv venv_path do owner "vagrant" group "vagrant" @@ -36,11 +40,6 @@ action :install end -python_pip "virtualenvwrapper" do - virtualenv venv_path - action :install -end - python_pip "ipdb" do virtualenv venv_path version "0.6.1"