Adds python3 support to our pip package. Also adds a custom version
of the pip package provider which can be used when installing
things w/ python3-pip is explicitly required. For example:
package { 'tox',
provider => pip3,
require => Class[pip::python3],
}
Change-Id: I1b563c8f7e647dad3a134ef1f0ec5b45b63f8b71
Reviewed-on: https://review.openstack.org/32451
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
24 lines
684 B
Puppet
24 lines
684 B
Puppet
# Class: pip::params
|
|
#
|
|
# This class holds parameters that need to be
|
|
# accessed by other classes.
|
|
class pip::params {
|
|
case $::osfamily {
|
|
'RedHat': {
|
|
$python_devel_package = 'python-devel'
|
|
$python_pip_package = 'python-pip'
|
|
$python3_devel_package = 'python3-devel'
|
|
$python3_pip_package = 'python3-pip'
|
|
}
|
|
'Debian': {
|
|
$python_devel_package = 'python-all-dev'
|
|
$python_pip_package = 'python-pip'
|
|
$python3_devel_package = 'python3-all-dev'
|
|
$python3_pip_package = 'python3-pip'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} The 'pip' module only supports osfamily Debian or RedHat.")
|
|
}
|
|
}
|
|
}
|