Added python::setup::install.

This commit is contained in:
Ossi Salmi 2010-10-26 11:47:12 +03:00 committed by Timo Mkinen
parent 365483adff
commit 716569f782

22
python/manifests/init.pp Normal file
View file

@ -0,0 +1,22 @@
# Install python software using setup.py.
#
# === Parameters
#
# $name:
# Source directory.
#
# === Sample usage
#
# python::setup::install { "/usr/local/src/moin-1.8.8": }
#
define python::setup::install() {
exec { "python-setup-install-${name}":
path => "/bin:/usr/bin:/sbin:/usr/sbin",
cwd => "${name}",
command => "python setup.py install",
unless => "test -d build",
require => File["${name}"],
}
}