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

Skip to content

Commit b0f7906

Browse files
committed
ensure python26 binary is preferred on older RHEL platforms
This will allow `pip` and `virtualenv` to be installed correctly on older RHEL installs.
1 parent fe26974 commit b0f7906

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

recipes/package.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
if platform_family?('rhel') && major_version < 6
2626
include_recipe 'yum::epel'
2727
python_pkgs = ["python26", "python26-devel"]
28+
node['python']['binary'] = "/usr/bin/python26"
2829
else
2930
python_pkgs = value_for_platform_family(
3031
"debian" => ["python","python-dev"],

0 commit comments

Comments
 (0)