summaryrefslogtreecommitdiffstats
path: root/update.sh
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2012-06-29 18:22:29 +0100
committerMark McLoughlin <markmc@redhat.com>2012-06-29 18:25:52 +0100
commit7d82ec7308a416358e7ac587431d6c4a5d865970 (patch)
tree6b0419d25ac0f63bdc3e19a3d12c729fc38348fb /update.sh
parentae2c6f0c93a1c1bdb2dd503978ef912547114f55 (diff)
downloadoslo-7d82ec7308a416358e7ac587431d6c4a5d865970.tar.gz
oslo-7d82ec7308a416358e7ac587431d6c4a5d865970.tar.xz
oslo-7d82ec7308a416358e7ac587431d6c4a5d865970.zip
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
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/update.sh b/update.sh
new file mode 100755
index 0000000..37d4a02
--- /dev/null
+++ b/update.sh
@@ -0,0 +1,13 @@
+#!/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 $*