File tree 1 file changed +12
-7
lines changed
1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 18
18
$python = $::python::version ? {
19
19
' system' => ' python' ,
20
20
' pypy' => ' pypy' ,
21
- default => " python ${python::version} " ,
21
+ default => " ${python::version} " ,
22
22
}
23
23
24
24
$pythondev = $::osfamily ? {
50
50
name => $python ,
51
51
}
52
52
53
- package { 'pip' :
54
- ensure => $pip_ensure ,
55
- require => Package[' python' ],
56
- }
57
-
58
53
package { 'virtualenv' :
59
54
ensure => $venv_ensure ,
60
55
require => Package[' python' ],
63
58
case $python::provider {
64
59
pip: {
65
60
61
+ package { 'pip' :
62
+ ensure => $pip_ensure ,
63
+ require => Package[' python' ],
64
+ }
65
+
66
66
package { 'python-dev' :
67
67
ensure => $dev_ensure ,
68
68
name => $pythondev ,
123
123
}
124
124
if $pip_ensure != ' absent' {
125
125
exec { 'python-scl-pip-install' :
126
- command => " ${python::params:: exec_prefix} easy_install pip" ,
126
+ command => " ${python::exec_prefix} easy_install pip" ,
127
127
path => [' /usr/bin' , ' /bin' ],
128
128
creates => " /opt/rh/${python::version} /root/usr/bin/pip" ,
129
129
require => Package[' scl-utils' ],
163
163
164
164
default: {
165
165
166
+ package { 'pip' :
167
+ ensure => $pip_ensure ,
168
+ require => Package[' python' ],
169
+ }
170
+
166
171
package { 'python-dev' :
167
172
ensure => $dev_ensure ,
168
173
name => $pythondev ,
You can’t perform that action at this time.
0 commit comments