Puppet Class: python::devel

Inherits:
python::params
Defined in:
manifests/devel.pp

Overview

Class: python::devel

Installs the Python development headers and compiler – makes it possible to compile modules with C extensions.

Parameters

package

The name of the Python development header package, defaults to what’s used on the platform (if any).

Parameters:

  • package (Any) (defaults to: $python::params::devel)


12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'manifests/devel.pp', line 12

class python::devel(
  $package = $python::params::devel,
) inherits python::params {
  if $package {
    if $::operatingsystem == 'Solaris' {
      include sys::solaris::sunstudio
      $python_compiler = 'sys::solaris::sunstudio'
    } else {
      include sys::gcc
      $python_compiler = 'sys::gcc'
    }

    package { $package:
      ensure  => installed,
      alias   => 'python-devel',
      require => Class[$python_compiler],
    }
  }
}