From 3426383cf129612f604857b8bafa24ce12d474b1 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Thu, 18 Nov 2010 16:41:37 +0200 Subject: [PATCH] Added support for defining python executable in python::setup::install --- python/manifests/init.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/manifests/init.pp b/python/manifests/init.pp index e55cdb3..649f1b2 100644 --- a/python/manifests/init.pp +++ b/python/manifests/init.pp @@ -4,17 +4,19 @@ # # $name: # Source directory. +# $python: +# Python executable name. Defaults to python. # # === Sample usage # # python::setup::install { "/usr/local/src/moin-1.8.8": } # -define python::setup::install() { +define python::setup::install($python="python") { exec { "python-setup-install-${name}": path => "/bin:/usr/bin:/sbin:/usr/sbin", cwd => "${name}", - command => "python setup.py install", + command => "${python} setup.py install", unless => "test -d build", }