Added python::setup::install.
This commit is contained in:
parent
365483adff
commit
716569f782
1 changed files with 22 additions and 0 deletions
22
python/manifests/init.pp
Normal file
22
python/manifests/init.pp
Normal 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}"],
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue