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

Skip to content

Commit b85a8ba

Browse files
author
Joshua Timberman
committed
Merge pull request poise#43 from opscode-cookbooks/COOK-3077
Cook 3077
2 parents ef6a0e0 + d2f8b66 commit b85a8ba

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

recipes/pip.rb

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

21-
if platform_family?("rhel") and node['python']['install_method'] == 'package'
21+
# Where does pip get installed?
22+
# platform/method: path (proof)
23+
# redhat/package: /usr/bin/pip (sha a8a3a3)
24+
# omnibus/source: /opt/local/bin/pip (sha 29ce9874)
25+
26+
if node['python']['install_method'] == 'source'
27+
pip_binary = "#{node['python']['prefix_dir']}/bin/pip"
28+
elsif platform_family?("rhel")
2229
pip_binary = "/usr/bin/pip"
2330
elsif platform_family?("smartos")
2431
pip_binary = "/opt/local/bin/pip"

0 commit comments

Comments
 (0)