From bc7826fe5763ed22dff2fbab247f40bdf9a4fb11 Mon Sep 17 00:00:00 2001 From: Johan Lyheden Date: Thu, 6 Nov 2014 12:14:23 +0100 Subject: [PATCH] added support to pip install from local directory --- manifests/pip.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manifests/pip.pp b/manifests/pip.pp index 9b19df9b..c65af7a4 100644 --- a/manifests/pip.pp +++ b/manifests/pip.pp @@ -134,8 +134,9 @@ } $source = $url ? { - false => $pkgname, - default => "${url}#egg=${egg_name}", + false => $pkgname, + /^(\/|[a-zA-Z]\:)/ => $url, + default => "${url}#egg=${egg_name}", } # We need to jump through hoops to make sure we issue the correct pip command