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

Skip to content

Commit e3d58f0

Browse files
author
Tim Ray
committed
[COOK-3077] updated recipes/pip.rb to correctly set the pip_binary variable when install_method is source
1 parent ef6a0e0 commit e3d58f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

recipes/pip.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
# limitations under the License.
1919
#
2020

21-
if platform_family?("rhel") and node['python']['install_method'] == 'package'
21+
if node['python']['install_method'] == 'source'
22+
pip_binary = "#{node['python']['prefix_dir']}/bin/pip"
23+
elsif platform_family?("rhel")
2224
pip_binary = "/usr/bin/pip"
2325
elsif platform_family?("smartos")
2426
pip_binary = "/opt/local/bin/pip"

0 commit comments

Comments
 (0)