From a7f72a30b81faea7f6ee64e826d72f51861a70f7 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Mon, 8 Feb 2016 20:24:15 +1100 Subject: [PATCH] Fixes #256 `/usr/bin/which pip` always return `false` because `$PATH` is not set. Instead, check for existance of `/usr/local/bin/pip`. --- manifests/install.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/install.pp b/manifests/install.pp index b0b63d21..049a3e31 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -71,7 +71,7 @@ # Install pip without pip, see https://pip.pypa.io/en/stable/installing/. exec { 'bootstrap pip': command => '/usr/bin/curl https://bootstrap.pypa.io/get-pip.py | python', - unless => '/usr/bin/which pip', + creates => '/usr/local/bin/pip', require => Package['python'], }