Thanks to visit codestin.com Credit goes to github.com
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.
import setuptools
1 parent 8e5de71 commit 2a3677eCopy full SHA for 2a3677e
recipes/pip.rb
@@ -33,20 +33,10 @@
33
pip_binary = "/usr/local/bin/pip"
34
end
35
36
-if node['python']['install_method'] == 'source'
37
- ez_binary = "#{node['python']['prefix_dir']}/bin/easy_install"
38
-elsif platform_family?("rhel")
39
- ez_binary = "/usr/bin/easy_install"
40
-elsif platform_family?("smartos")
41
- ez_binary = "/opt/local/bin/easy_install"
42
-else
43
- ez_binary = "/usr/local/bin/easy_install"
44
-end
45
-
46
remote_file "#{Chef::Config[:file_cache_path]}/ez_setup.py" do
47
source node['python']['setuptools_script_url']
48
mode "0644"
49
- not_if { ::File.exists?(ez_binary) }
+ not_if "#{node['python']['binary']} -c 'import setuptools'"
50
51
52
remote_file "#{Chef::Config[:file_cache_path]}/get-pip.py" do
0 commit comments