From 252cb8787883ba58bb7418f7a20c518447ef72c6 Mon Sep 17 00:00:00 2001 From: Seth Cleveland Date: Mon, 3 Jun 2013 17:36:14 -0500 Subject: [PATCH] adding fedora support --- recipes/package.rb | 1 + recipes/pip.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/package.rb b/recipes/package.rb index 3ccb688..a7ec836 100644 --- a/recipes/package.rb +++ b/recipes/package.rb @@ -30,6 +30,7 @@ python_pkgs = value_for_platform_family( "debian" => ["python","python-dev"], "rhel" => ["python","python-devel"], + "fedora" => ["python","python-devel"], "freebsd" => ["python"], "smartos" => ["python27"], "default" => ["python","python-dev"] diff --git a/recipes/pip.rb b/recipes/pip.rb index ca2151e..5882323 100644 --- a/recipes/pip.rb +++ b/recipes/pip.rb @@ -18,7 +18,7 @@ # limitations under the License. # -if platform_family?("rhel") and node['python']['install_method'] == 'package' +if platform_family?("rhel","fedora") and node['python']['install_method'] == 'package' pip_binary = "/usr/bin/pip" elsif platform_family?("smartos") pip_binary = "/opt/local/bin/pip"