Clone wiki

gorilla / VirtualenvSupport

Virtualenv Support

This is a requirement. Virtualenv is great.

It shouldn't be too tough:

import os
venv = os.getenv('VIRTUAL_ENV')
if venv:
    print "It looks like you're working in a virtualenv (%s)" % venv
    print "Do you want to install the package in that? [y/n/q] ",
    answer = raw_input()
    # parse answer

We need to decide how to handle installing into venvs.

Do we symlink like normal? Probably not, because then the version in the venv would get updated whenever the main version does.

Do we copy the files? Probably, but how do we determine if a package is installed in a venv? Slap a .gorilla file inside the venv? That's slightly kludgey but could work.

Updated