From 016f95b09e447d50cc6a216815c561e62f57c7df Mon Sep 17 00:00:00 2001 From: Adam Stephens Date: Thu, 15 Oct 2015 16:25:44 -0400 Subject: [PATCH] RedHat has different virtualenv packages for different pythons For example, 'python27' can have a 'python27-virtualenv' package. --- manifests/install.pp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/manifests/install.pp b/manifests/install.pp index b683570a..c26b40a1 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -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/ { @@ -182,11 +189,6 @@ $pip_package = 'python-pip' } - $virtualenv_package = $::lsbdistcodename ? { - 'jessie' => 'virtualenv', - default => 'python-virtualenv', - } - Package <| title == 'pip' |> { name => $pip_package, }