From b2542bff72d8b4f5adeec3e0bf6c14c64aaa7e18 Mon Sep 17 00:00:00 2001 From: Scott Sturdivant Date: Thu, 23 May 2013 10:56:52 -0600 Subject: [PATCH] Chdir to tempdir to prevent permissions problems. --- library/packaging/pip | 1 + 1 file changed, 1 insertion(+) diff --git a/library/packaging/pip b/library/packaging/pip index cc16556848..ccdec75834 100644 --- a/library/packaging/pip +++ b/library/packaging/pip @@ -201,6 +201,7 @@ def main(): cmd = '%s --system-site-packages %s' % (virtualenv, env) else: cmd = '%s %s' % (virtualenv, env) + os.chdir(tempfile.gettempdir()) rc, out_venv, err_venv = module.run_command(cmd) out += out_venv err += err_venv