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:
|
# $name:
|
||||||
# Source directory.
|
# Source directory.
|
||||||
|
# $python:
|
||||||
|
# Python executable name. Defaults to python.
|
||||||
#
|
#
|
||||||
# === Sample usage
|
# === Sample usage
|
||||||
#
|
#
|
||||||
# python::setup::install { "/usr/local/src/moin-1.8.8": }
|
# 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}":
|
exec { "python-setup-install-${name}":
|
||||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||||
cwd => "${name}",
|
cwd => "${name}",
|
||||||
command => "python setup.py install",
|
command => "${python} setup.py install",
|
||||||
unless => "test -d build",
|
unless => "test -d build",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue