We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef6a0e0 + d2f8b66 commit b85a8baCopy full SHA for b85a8ba
recipes/pip.rb
@@ -18,7 +18,14 @@
18
# limitations under the License.
19
#
20
21
-if platform_family?("rhel") and node['python']['install_method'] == 'package'
+# 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")
29
pip_binary = "/usr/bin/pip"
30
elsif platform_family?("smartos")
31
pip_binary = "/opt/local/bin/pip"
0 commit comments