pypa/pip — pull request #516 by TC01 (2012-04-23 22:26:34+00:00)
Title: Temporary build and src directories no longer created in cwd/pwd (bugs #339, #381)

This has been an issue with pip for a while (the latest bugs about this appear to be #339 and #381, but glancing through I found a couple of other reports), where the temporary build dir (and the temporary src dir) is created in a user's pwd/cwd.

This fix (unlike the proposed fix linked in #381) will always use tempfile to create the build and src directories, using a format similar to other temporary pip directories (/tmp/pip-[foo]-build, /tmp/pip-[bar]-src).

I also moved the configuration directory from ~/.pip to ~/.config/pip on Unix systems- ~/.config being a place where more and more programs are storing their configuration files, as a way to avoid clutter in a user's home folder.