Ensure latest setuptools after installing pip.

New versions of setuptools and old versions explode when mixed together
in dangerous ratios. Ensure the ratio is just right in the pip module
so that it ends up everywhere that needs it.

Change-Id: I22fe26c6cb40ee24ca242226e5b52dc127b4c564
This commit is contained in:
Clark Boylan 2013-07-26 10:31:46 -07:00
parent 47eeb86fef
commit d1b79539c4
2 changed files with 12 additions and 0 deletions

View File

@ -12,6 +12,12 @@ class pip {
require => Package[$::pip::params::python_devel_package]
}
package { 'setuptools':
ensure => latest,
provider => pip,
require => Package[$::pip::params::python_pip_package],
}
if ($::operatingsystem in ['CentOS', 'RedHat']) {
file { '/usr/bin/pip':

View File

@ -12,4 +12,10 @@ class pip::python3 {
require => Package[$::pip::params::python3_devel_package]
}
package { 'setuptools':
ensure => latest,
provider => pip3,
require => Package[$::pip::params::python3_pip_package],
}
}