Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.
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
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#

default['python']['install_method'] = 'package'
default['python']['package_names'] = nil # see package recipe for platform-specific defaults

if python['install_method'] == 'package'
case platform
Expand Down
4 changes: 3 additions & 1 deletion recipes/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@

major_version = node['platform_version'].split('.').first.to_i

if node['python']['package_names']
python_pkgs = node['python']['package_names']
# COOK-1016 Handle RHEL/CentOS namings of python packages, by installing EPEL
# repo & package
if platform_family?('rhel') && major_version < 6
elsif platform_family?('rhel') && major_version < 6
include_recipe 'yum-epel'
python_pkgs = ["python26", "python26-devel"]
node.default['python']['binary'] = "/usr/bin/python26"
Expand Down
⌂ Proxy