[chef] Re: Re: how to use python pip to install a package


Chronological Thread 
  • From: Sachin Sagar Rai < >
  • To:
  • Subject: [chef] Re: Re: how to use python pip to install a package
  • Date: Wed, 9 May 2012 23:11:46 +0545

The following will help you out coz I've recently used the python_pip.

include_recipe 'python'
include_recipe "python::pip"
node['python']['distribute_install_py_version'] = "0.6.25"

python_pip "virtualenv" do
  action :install
end

-------------------------------------------
@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.tumblr.com
Sent with Sparrow

On Wednesday, May 9, 2012 at 1:01 PM, AJ Christensen wrote:

You need the python cookbook in your cookbook metadata or on the edge.

Cheers,

AJ

On May 9, 2012 7:14 PM, "David Montgomery" < "> > wrote:
Hi,

The is the error I get in the chef run....

[Wed, 09 May 2012 07:06:14 +0000] FATAL: NoMethodError: undefined
method `python_pip' for #<Chef::Recipe:0x7f267f10e9b8>

Below is the code for the package I want to install.

python_pip "uwsgi" do
 action :install
end

So...what is the proper way to use pip in chef?

Thanks




Archive powered by MHonArc 2.6.16.

§