Added support for defining python executable in python::setup::install
This commit is contained in:
parent
1b3fc4a90a
commit
3426383cf1
1 changed files with 4 additions and 2 deletions
|
@ -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",
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue