summaryrefslogtreecommitdiffstats
path: root/tools/install_venv.py
diff options
context:
space:
mode:
authorJohn Tran <jtran@attinteractive.com>2011-04-05 18:35:15 -0700
committerJohn Tran <jtran@attinteractive.com>2011-04-05 18:35:15 -0700
commitd137ffdc2fb4e0298a6fb177df9e6a8299320301 (patch)
tree7d119a9c4d0b2e38483dc323d47215bd90f4a5ac /tools/install_venv.py
parent94ccd2f4a1c42a8574fe65972650428130ae850d (diff)
downloadnova-d137ffdc2fb4e0298a6fb177df9e6a8299320301.tar.gz
nova-d137ffdc2fb4e0298a6fb177df9e6a8299320301.tar.xz
nova-d137ffdc2fb4e0298a6fb177df9e6a8299320301.zip
Add a patch for python eventlet, when using install_venv.py (see FAQ # 1485)
Diffstat (limited to 'tools/install_venv.py')
-rw-r--r--tools/install_venv.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/install_venv.py b/tools/install_venv.py
index 4e3941210..30ec85374 100644
--- a/tools/install_venv.py
+++ b/tools/install_venv.py
@@ -103,6 +103,12 @@ def install_dependencies(venv=VENV):
pthfile = os.path.join(venv, "lib", "python2.6", "site-packages", "nova.pth")
f = open(pthfile, 'w')
f.write("%s\n" % ROOT)
+ # Patch eventlet (see FAQ # 1485)
+ patchsrc = os.path.join(ROOT, 'tools', 'eventlet-patch')
+ patchfile = os.path.join(venv, "lib", "python2.6", "site-packages", "eventlet",
+ "green", "subprocess.py")
+ patch_cmd = "patch %s %s" % (patchfile, patchsrc)
+ os.system(patch_cmd)
def print_help():