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

Skip to content

Commit 8e5de71

Browse files
committed
Use @coderanger's suggested way(#r5274401) to check setuptools are installed.
1 parent c8354c6 commit 8e5de71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recipes/pip.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
command <<-EOF
6161
#{node['python']['binary']} ez_setup.py
6262
EOF
63-
not_if { ::File.exists?(ez_binary) }
63+
not_if "#{node['python']['binary']} -c 'import setuptools'"
6464
end
6565

6666
execute "install-pip" do

0 commit comments

Comments
 (0)