)]}'
{"nodepool/scripts/prepare_node.sh":[{"author":{"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},"change_message_id":"904aa7a3b1ff93d8371915c8657816e966b23476","unresolved":false,"context_lines":[{"line_number":195,"context_line":"# Download every pip package, as root, to prime the pip package repo"},{"line_number":196,"context_line":"# from the mirrors. This cache runs about 300M. This is really only a"},{"line_number":197,"context_line":"# solution for master, but as that represents the bulk of our jobs,"},{"line_number":198,"context_line":"# this should provide speedups for most folks."},{"line_number":199,"context_line":"sudo -H virtualenv /tmp/pip-throwaway"},{"line_number":200,"context_line":"sudo -i /tmp/pip-throwaway/bin/pip install \\"},{"line_number":201,"context_line":"     -r /opt/git/requirements/global-requirements.txt \\"}],"source_content_type":"text/x-sh","patch_set":1,"id":"3ac371cc_50c6c848","line":198,"updated":"2016-08-16 12:58:19.000000000","message":"I think this is going to fail because there are several packages that need C depends that are not installed.\n\nHowever, if instaed of a virtualenv, you make a temp dir, and then add a -d . to the install command, that will just download the things into that temp dir (and also put them into the cache) Then just delete the tempdir.\n\nObviously want to do the download as root too.","commit_id":"c5ed5d0c03c337c8834cb153de78459f4d802dda"},{"author":{"_account_id":2750,"name":"Sean Dague","email":"sean@dague.net","username":"sdague"},"change_message_id":"120b5ad5273a7eb6a1ce27b0ea8ae31ce1f3e875","unresolved":false,"context_lines":[{"line_number":195,"context_line":"# Download every pip package, as root, to prime the pip package repo"},{"line_number":196,"context_line":"# from the mirrors. This cache runs about 300M. This is really only a"},{"line_number":197,"context_line":"# solution for master, but as that represents the bulk of our jobs,"},{"line_number":198,"context_line":"# this should provide speedups for most folks."},{"line_number":199,"context_line":"sudo -H virtualenv /tmp/pip-throwaway"},{"line_number":200,"context_line":"sudo -i /tmp/pip-throwaway/bin/pip install \\"},{"line_number":201,"context_line":"     -r /opt/git/requirements/global-requirements.txt \\"}],"source_content_type":"text/x-sh","patch_set":1,"id":"3ac371cc_b8efe51c","line":198,"in_reply_to":"3ac371cc_50c6c848","updated":"2016-08-17 12:55:04.000000000","message":"As we discovered from talking with dstufft, the pip cache is actually an on disk http cache. Which means it\u0027s caching by url, not by content. So changing mirrors bypasses the cache. Which makes it not possible to prime the cache at all.","commit_id":"c5ed5d0c03c337c8834cb153de78459f4d802dda"}]}
