There is no way to do an idempotence check on such a thing (at least not easily) since Chef can't know what version of that package is installed currently. It could potentially be improved with either a manual package name attr or an understanding of the #egg= tagging, but any such fixes would go in the pip install provider since no one should be using easy_install anymore :-DOn Aug 9, 2011, at 12:42 PM, Kevin Nuckolls wrote:
> On the command line I can do the following and it works!
>
> sudo easy_install http://launchpad.net/graphite/1.0/0.9.8/+download/whisper-0.9.8.tar.gz
>
> The corresponding resource definition fails.
>
> easy_install_package "http://launchpad.net/graphite/1.0/0.9.8/+download/whisper-0.9.8.tar.gz" do
> action :install
> end
>
> INFO: Processing easy_install_package[http://launchpad.net/graphite/1.0/0.9.8/+download/whisper-0.9.8.tar.gz] action install (graphite::default line 16)
> ...
> ...
> FATAL: Chef::Exceptions::Package: easy_install_package[http://launchpad.net/graphite/1.0/0.9.8/+download/whisper-0.9.8.tar.gz] (graphite::default line 16) had an error: No version specified, and no candidate version available for http://launchpad.net/graphite/1.0/0.9.8/+download/whisper-0.9.8.tar.gz
>
> Is this expected? Is there a way to install a python package this way? I can't seem to find one.
--Noah
Archive powered by MHonArc 2.6.16.