File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7373 $environment = [],
7474 $forceupdate = false ,
7575 $cwd = undef ,
76+ $pip_env = undef ,
7677 $extra_pip_args = ' ' ,
7778 $manage_requirements = true ,
7879 $fix_requirements_owner = true ,
99100 default => $virtualenv ,
100101 }
101102
102- $pip_env = $virtualenv ? {
103- ' system' => " ${::python::exec_prefix} pip" ,
104- default => " ${::python::exec_prefix} ${virtualenv} /bin/pip" ,
103+ $pip_env_ = $pip_env ? {
104+ undef => $virtualenv ? {
105+ ' system' => " ${::python::exec_prefix} pip" ,
106+ default => " ${::python::exec_prefix} ${virtualenv} /bin/pip" ,
107+ },
108+ default => $pip_env ,
105109 }
106110
107111 $proxy_flag = $proxy ? {
129133 }
130134
131135 exec { "python_requirements${name}" :
132- provider => shell,
133- command => " ${pip_env } --log ${log} /pip.log install ${proxy_flag} ${src_flag} -r ${requirements} ${extra_pip_args} " ,
136+ # provider => shell,
137+ command => " ${pip_env_ } --log ${log} /pip.log install ${proxy_flag} ${src_flag} -r ${requirements} ${extra_pip_args} " ,
134138 refreshonly => !$forceupdate ,
135139 timeout => $timeout ,
136140 cwd => $cwd ,
137- user => $owner ,
138141 subscribe => File [$requirements ],
139142 environment => $environment ,
140143 }
144+
145+ if $::operatingsystem != ' windows' {
146+ Exec[" python_requirements${name} " ] {
147+ user => $owner ,
148+ }
149+ }
150+
141151}
Original file line number Diff line number Diff line change 217217 group => $group ,
218218 cwd => $cwd ,
219219 require => Exec[" python_virtualenv_${venv_dir} " ],
220+ pip_env => $pip_cmd ,
220221 extra_pip_args => $extra_pip_args ,
221222 }
222223 }
You can’t perform that action at this time.
0 commit comments