Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

[COOK-2138] platform_family fedora support #26

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion recipes/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
else
python_pkgs = value_for_platform_family(
"debian" => ["python","python-dev"],
"rhel" => ["python","python-devel"],
"rhel" => ["python","python-devel","python-setuptools"],
"fedora" => ["python","python-devel","python-setuptools"],
"freebsd" => ["python"],
"smartos" => ["python27"],
"default" => ["python","python-dev"]
Expand Down
2 changes: 1 addition & 1 deletion recipes/pip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

if node['python']['install_method'] == 'source'
pip_binary = "#{node['python']['prefix_dir']}/bin/pip"
elsif platform_family?("rhel")
elsif (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"
Expand Down