Added support for defining python executable in python::setup::install

This commit is contained in:
Ossi Salmi 2010-11-18 16:41:37 +02:00 committed by Timo Mkinen
parent 1b3fc4a90a
commit 3426383cf1

View file

@ -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",
}