Skip to content

Instantly share code, notes, and snippets.

@dstufft
Created March 5, 2013 17:32

Revisions

  1. Donald Stufft created this gist Mar 5, 2013.
    10 changes: 10 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # Compliments to Nick Coghlan for coming up with this sort of scheme

    # foo 1.2 is not installed, this command would download, and "install"
    # it into ~/.pip/dists/foo-1.2/ and then link $VENV/site-packages/foo -> ~/.pip/dists/foo-1.2/
    $ pip install foo==1.2

    # In another virtualenv this command would see that ~/.pip/dists/foo-1.2/ already
    # exists so instead of downloading + installing it, it simply links $OTHER_VENV/site-packages/foo/
    # to ~/.pip/dists/foo-1.2/
    $ pip install foo=1.2