localwiki/localwiki — Issue #172: virtualenv 1.7 support
Author: philipn
Created: 2012-01-15 02:23:06+00:00
State: open

virtualenv 1.7 just came out. it sets --no-site-packages as the default. so we have to have people do:

virtualenv --system-site-packages env

I could update the INSTALL file to reflect this . I think it'd be fine as we ask them to upgrade their virtualenv version during the install. But how about the Ubuntu package?

The ubuntu package seems to install python-virtualenv and then does a simple 'virtualenv env' during postinstall. This means they may have virtualenv 1.7 installed (independently) and the install would choke in this case. So what about doing, in localwiki.postinst:

if [ ! -d "$datadir/env" ]; then
pip install --upgrade virtualenv
echo "Creating virtualenv ..."
cd "$datadir"
virtualenv --quiet env
fi

?