Skip to content

Commit

Permalink
Merge pull request #255 from covermymeds/redhat_virtualenv_package
Browse files Browse the repository at this point in the history
RedHat has different virtualenv packages for different pythons
  • Loading branch information
Shiva Poudel committed Oct 15, 2015
2 parents 4bb83fa + 016f95b commit b39478d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,13 @@
Class['epel'] -> Package['virtualenv']
}
}

$virtualenv_package = "${python}-virtualenv"
} else {
$virtualenv_package = $::lsbdistcodename ? {
'jessie' => 'virtualenv',
default => 'python-virtualenv',
}
}

if $::python::version =~ /^3/ {
Expand All @@ -182,11 +189,6 @@
$pip_package = 'python-pip'
}

$virtualenv_package = $::lsbdistcodename ? {
'jessie' => 'virtualenv',
default => 'python-virtualenv',
}

Package <| title == 'pip' |> {
name => $pip_package,
}
Expand Down

0 comments on commit b39478d

Please sign in to comment.