devpi as a pip cache

Share

Richard Jones introduced me to devpi as a pip cache, and its pretty cool. He’s written up a guide on his blog at http://mechanicalcat.net/richard/log/Python/devpi_quick_start. The basic idea is that it caches on demand, so you can have one of these for your home network and avoid downloading things over and over. Even better, it your machines share a linux ABI (think same Ubuntu release or whatever), then you can upload wheels and avoid all those repeated compiles.

Share

Faster pip installs

Share

Last week with the help of the lovely openstack-infra people, I discovered that you can have a local cache of pip downloads. This speeds up rebuilding test environments when you need to jump between branches with different dependencies. Its as simple as chucking something like:

    export PIP_DOWNLOAD_CACHE=~/cache/pip
    

…into your .bashrc or equivalent.

Share