Skip to content

Instantly share code, notes, and snippets.

@dstufft
Created March 5, 2013 17:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dstufft/5092166 to your computer and use it in GitHub Desktop.
Save dstufft/5092166 to your computer and use it in GitHub Desktop.
# 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
@merwok
Copy link

merwok commented Mar 15, 2014

If I uninstall foo from both virtualenvs, is it cleaned from ~/.pip/dists?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment