From c9c9c2d978f7b95069b453aea21b9e7d14f67dcf Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Wed, 16 Sep 2015 07:30:30 +1000 Subject: [PATCH] Bootstrap pip installation Fixes #243. --- manifests/install.pp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/manifests/install.pp b/manifests/install.pp index 0ea86ebc..1d8b48b1 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -65,6 +65,14 @@ case $python::provider { pip: { + # Install pip without pip, see https://pip.pypa.io/en/stable/installing/. + exec { 'bootstrap pip': + command => 'curl https://bootstrap.pypa.io/get-pip.py | python', + creates => '/usr/local/bin/pip', + require => Package['python'], + } + Exec['bootstrap pip'] -> Package <| provider == pip |> + Package <| title == 'pip' |> { name => 'pip', provider => 'pip',