pypa/pip — Issue #420: pip doesn't clean up after itself, fills up /tmp/
Author: adamJLev
Created: 2011-12-28 20:17:51+00:00
State: open

After a few months of deployments, our servers /tmp folder is filling up with lingering pip builds. (see below).
I believe pip should clean up after itself, maybe after a successful build it should remove all old lingering temp folders.

[root@webplayer2b18 tmp]# ll | grep pip
drwx------ 12 apache apache 4096 Sep 19 18:17 pip-02SaCT-build
drwx------ 11 apache apache 4096 Sep 18 22:46 pip-02ZJbU-build
drwx------ 11 apache apache 4096 Nov 3 13:56 pip-0GWM9j-build
drwx------ 11 apache apache 4096 Sep 10 18:13 pip-0nhDES-build
drwx------ 8 apache apache 4096 Dec 15 12:03 pip-0TuvMR-build
drwx------ 11 apache apache 4096 Sep 7 22:10 pip-11FKKs-build
drwx------ 11 apache apache 4096 Dec 9 11:13 pip-39gSFC-build
drwx------ 11 apache apache 4096 Nov 3 10:56 pip-3EK81q-build
drwx------ 11 apache apache 4096 Sep 7 22:14 pip-3L6bvP-build
drwx------ 11 apache apache 4096 Oct 27 15:34 pip-4d0jFD-build
drwx------ 11 apache apache 4096 Nov 15 15:57 pip-6AS5_a-build
drwx------ 11 apache apache 4096 Dec 9 11:02 pip-6jWQP4-build
drwx------ 11 apache apache 4096 Oct 5 17:58 pip-6LmEvH-build
drwx------ 11 apache apache 4096 Sep 14 14:28 pip-7cBgOj-build
drwx------ 2 apache apache 4096 Dec 12 17:44 pip-7jDhp0-record
drwx------ 12 apache apache 4096 Sep 19 18:15 pip-7jO4xC-build
drwx------ 11 apache apache 4096 Oct 7 15:36 pip-7mNzFF-build
drwx------ 11 apache apache 4096 Nov 3 17:54 pip-7x1sBs-build
drwx------ 11 apache apache 4096 Nov 1 12:49 pip-8FpTMv-build
drwx------ 11 apache apache 4096 Dec 9 10:48 pip-8nuHew-build
drwx------ 11 apache apache 4096 Oct 26 11:14 pip-9PzLSo-build
drwx------ 11 apache apache 4096 Oct 26 16:25 pip-9Wyekd-build
drwx------ 11 apache apache 4096 Dec 9 11:26 pip-aFFRCH-build
drwx------ 11 apache apache 4096 Dec 12 18:00 pip-BDtvpn-build
drwx------ 11 apache apache 4096 Oct 27 15:37 pip-bqfuzI-build
drwx------ 11 apache apache 4096 Oct 11 13:46 pip-CG6iL9-build
drwx------ 11 apache apache 4096 Nov 2 13:25 pip-cQsiFq-build
drwx------ 11 apache apache 4096 Sep 13 18:15 pip-cuQCwH-build
drwx------ 11 apache apache 4096 Sep 9 17:02 pip-cwTDmU-build
drwx------ 11 apache apache 4096 Dec 9 11:10 pip-D4lgz2-build
drwx------ 11 apache apache 4096 Sep 13 18:21 pip-DAZ6pr-build