Skip to content

Commit 13531dc

Browse files
committed
Merge pull request voxpupuli#135 from ive/master
Fixed pip non-root installation
2 parents 2326446 + f9fad7f commit 13531dc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

manifests/pip.pp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@
153153
command => "${pip_env} wheel --help > /dev/null 2>&1 && { ${pip_env} wheel --version > /dev/null 2>&1 || wheel_support_flag='--no-use-wheel'; } ; { ${pip_env} --log ${cwd}/pip.log install ${install_args} \$wheel_support_flag ${proxy_flag} ${install_args} ${install_editable} ${source}==${ensure} || ${pip_env} --log ${cwd}/pip.log install ${install_args} ${proxy_flag} ${install_args} ${install_editable} ${source}==${ensure} ;}",
154154
unless => "${pip_env} freeze | grep -i -e ${grep_regex}",
155155
user => $owner,
156+
cwd => $cwd,
156157
environment => $environment,
157158
path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'],
158159
timeout => $timeout,
@@ -165,6 +166,7 @@
165166
command => "${pip_env} wheel --help > /dev/null 2>&1 && { ${pip_env} wheel --version > /dev/null 2>&1 || wheel_support_flag='--no-use-wheel'; } ; { ${pip_env} --log ${cwd}/pip.log install \$wheel_support_flag ${proxy_flag} ${install_args} ${install_editable} ${source} || ${pip_env} --log ${cwd}/pip.log install ${proxy_flag} ${install_args} ${install_editable} ${source} ;}",
166167
unless => "${pip_env} freeze | grep -i -e ${grep_regex}",
167168
user => $owner,
169+
cwd => $cwd,
168170
environment => $environment,
169171
path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'],
170172
timeout => $timeout,
@@ -177,6 +179,7 @@
177179
command => "${pip_env} wheel --help > /dev/null 2>&1 && { ${pip_env} wheel --version > /dev/null 2>&1 || wheel_support_flag='--no-use-wheel'; } ; { ${pip_env} --log ${cwd}/pip.log install --upgrade \$wheel_support_flag ${proxy_flag} ${install_args} ${install_editable} ${source} || ${pip_env} --log ${cwd}/pip.log install --upgrade ${proxy_flag} ${install_args} ${install_editable} ${source} ;}",
178180
unless => "${pip_env} search ${source} | grep -i INSTALLED | grep -i latest",
179181
user => $owner,
182+
cwd => $cwd,
180183
environment => $environment,
181184
path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'],
182185
timeout => $timeout,
@@ -189,6 +192,7 @@
189192
command => "echo y | ${pip_env} uninstall ${uninstall_args} ${proxy_flag}",
190193
onlyif => "${pip_env} freeze | grep -i -e ${grep_regex}",
191194
user => $owner,
195+
cwd => $cwd,
192196
environment => $environment,
193197
path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'],
194198
timeout => $timeout,

0 commit comments

Comments
 (0)