oslo-incubator/update.sh
Mark McLoughlin 7d82ec7308 Add update.sh to avoid import conflicts
Attempts to fix #951197

The openstack nose plugin defines the openstack.common namespace
which can result in exceptions when update.py attempts to import
cfg.

Avoid the issue by using an update.sh script which creates a
no-site-packages virtualenv.

Change-Id: I1ec5cf49361303b79306714122b860f6e4912215
2012-06-29 18:25:52 +01:00

14 lines
223 B
Bash
Executable File

#!/bin/bash
# Make some coffee and read https://code.launchpad.net/bugs/951197
VENV=.update-venv
[ -d $VENV ] || virtualenv -q --no-site-packages $VENV
. $VENV/bin/activate
python setup.py install
python update.py $*