Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

Commit 96f8fc5

Browse files
committed
altinstall retry
1 parent 72bab61 commit 96f8fc5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

recipes/pip.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
if node['python']['install_method'] == 'source'
2727
pip_binary = "#{node['python']['prefix_dir']}/bin/pip"
28-
major_minor_version = "#{node['python']['version']}"[/\d\.\d/]
28+
major_minor_version = node['python']['version'][/\d\.\d/]
2929
elsif platform_family?("rhel")
3030
pip_binary = "/usr/bin/pip"
3131
elsif platform_family?("smartos")
@@ -59,7 +59,7 @@
5959
command <<-EOF
6060
#{node['python']['binary']}#{major_minor_version} ez_setup.py
6161
EOF
62-
not_if "#{node['python']['binary']}-2.7 -c 'import setuptools'"
62+
not_if "#{node['python']['binary']}#{major_minor_version} -c 'import setuptools'"
6363
only_if {node['python']['install_type'] == "altinstall"}
6464
end
6565

@@ -76,6 +76,6 @@
7676
command <<-EOF
7777
#{node['python']['binary']}#{major_minor_version} get-pip.py
7878
EOF
79-
not_if { ::File.exists?(pip_binary) }
79+
not_if { ::File.exists?(pip_binary + "-" + major_minor_version) }
8080
only_if {node['python']['install_type'] == "altinstall"}
8181
end

0 commit comments

Comments
 (0)