AllenInstitute / datacube

Other
0 stars 1 forks source link

prevent pipenv from accumulating files in tmp/ #74

Open chrisbarber opened 6 years ago

chrisbarber commented 6 years ago

After a period of time, tmp/ starts to look like this:

(datacube) [root@devdatacube apps]# ls /local2/tmp/
bamboo-ssh.9900a68e.sh          pip-ephem-wheel-cache-as8f4ksp  pip-ephem-wheel-cache-mc9koq4w  pip-install-403i87h9  pip-install-l2c0_ydw  pip-install-xqb_z3km
hsperfdata_root                 pip-ephem-wheel-cache-cr378txe  pip-ephem-wheel-cache-mjzv90g9  pip-install-4akx5ct2  pip-install-ldssht4t  pip-install-ztkecprt
pipenv-9u0dnmfn-requirements    pip-ephem-wheel-cache-cxq12d97  pip-ephem-wheel-cache-msby8g_j  pip-install-56leuzl0  pip-install-lyixgir7  pip-unpack-2535hv8t
pipenv-xv_0zc4f-requirements    pip-ephem-wheel-cache-efi1doik  pip-ephem-wheel-cache-n4xq9dph  pip-install-5e8nbvpo  pip-install-mc77_7qb  pytest-of-root
pip-ephem-wheel-cache-0hfhrja5  pip-ephem-wheel-cache-eq7yjqvv  pip-ephem-wheel-cache-quhn9yr6  pip-install-6y4c6wwd  pip-install-mxafcz9s  redis-server.63799.log
pip-ephem-wheel-cache-2e2pgbb7  pip-ephem-wheel-cache-fc_gphzn  pip-ephem-wheel-cache-rpmz6ho2  pip-install-8jj845_o  pip-install-my_k5313  ssh-0d21luALHyqn
pip-ephem-wheel-cache-42p01ffv  pip-ephem-wheel-cache-fpsc2zrj  pip-ephem-wheel-cache-snhdijd3  pip-install-c_9dlfob  pip-install-oov5lgux  ssh-0jhJhKyK01jd
pip-ephem-wheel-cache-499c2pcc  pip-ephem-wheel-cache-gqhe8j11  pip-ephem-wheel-cache-t8iewce2  pip-install-cxc43xw_  pip-install-q0x71qtp  ssh-9LjkKw82kfGU
pip-ephem-wheel-cache-4sd2fvws  pip-ephem-wheel-cache-ha5pfvt6  pip-ephem-wheel-cache-uo82y_1x  pip-install-edr0jm1m  pip-install-qjcy__5l  ssh-e7tx53ZAOvkD
pip-ephem-wheel-cache-4w7uhkae  pip-ephem-wheel-cache-huxqox8m  pip-ephem-wheel-cache-y55w4lgs  pip-install-euctmqvv  pip-install-sa6f1jjk  ssh-ODNrwDfLInRq
pip-ephem-wheel-cache-4wklz1wb  pip-ephem-wheel-cache-i0yim3y5  pip-install-1n6k_nu7            pip-install-g7vjm4kt  pip-install-tpoik4f8  ssh-sKIArIztUBXx
pip-ephem-wheel-cache-6d1jk7s9  pip-ephem-wheel-cache-jmh7pgrl  pip-install-1ttm4jv8            pip-install-h3eg951a  pip-install-uis0csrv  ssh-vqHwWH7TasD6
pip-ephem-wheel-cache-8ws775qc  pip-ephem-wheel-cache-j_o0i9kx  pip-install-2ek9ir1p            pip-install-hasvyzsw  pip-install-ux9gvjw5  systemd-private-96c14e2436654c509e5d990efcf35019-httpd.service-6xmnbE
pip-ephem-wheel-cache-9s02qhkr  pip-ephem-wheel-cache-kqro9h3z  pip-install-3ov32ngx            pip-install-k30igoj_  pip-install-wq9lu91k

I believe it's pipenv doing this because of the 8-character random suffixes.

chrisbarber commented 6 years ago

Temporarily including

export TMPDIR=/local2/tmp
rm -rf $TMPDIR/pip-*

in the builds to work around this.