Paczesiowa / virthualenv

Virtual Haskell Environment builder
BSD 3-Clause "New" or "Revised" License
69 stars 7 forks source link

support multiple envs in one project directory #34

Closed simonmichael closed 12 years ago

simonmichael commented 12 years ago

Thanks for virthualenv. I'd like to use it to test a project with different ghc and package sets, without having to duplicate the project directory. The --name option didn't do what I expected - virthualenv always uses the ".virthualenv" path. Here's a bash alias I use for switching, but making --name set the directory name seems better.

# activate the named .virthualenv environment ("deactivate" to exit)
function activate ()
{
    if [ "$1" == "" ]
    then
        echo environments available: `ls -d .virthualenv-*`
    else
        rm -f .virthualenv
        ln -s .virthualenv-"$1" .virthualenv
        source .virthualenv-"$1"/bin/activate
    fi
}
Paczesiowa commented 12 years ago

no new feautures in virthualenv, only bug fixes. use hsenv