summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2011-11-15 23:36:05 +0000
committerGerrit Code Review <review@openstack.org>2011-11-15 23:36:05 +0000
commit7ece1e7e607849f0d9a0eb5551899b3cc973545e (patch)
tree958590ad7459e39964ad360ccd4e703b46566775
parent9f3f056bd5ceda5d41508533244f5b509ddcfb0e (diff)
parentb0ad7284aa6e00559efa6e291b69eef1a2a1de33 (diff)
Merge "install_venv: apply eventlet patch correctly with python 2.7 (#890461)"
-rw-r--r--tools/install_venv.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/install_venv.py b/tools/install_venv.py
index 166801e82..f1d2ea86c 100644
--- a/tools/install_venv.py
+++ b/tools/install_venv.py
@@ -110,6 +110,9 @@ class Fedora(Distro):
def yum_install(self, pkg, **kwargs):
run_command(['sudo', 'yum', 'install', '-y', pkg], **kwargs)
+ def apply_patch(self, originalfile, patchfile):
+ run_command(['patch', originalfile, patchfile])
+
def install_virtualenv(self):
if self.check_cmd('virtualenv'):
return
@@ -143,9 +146,9 @@ class Fedora(Distro):
self.yum_install('patch')
# Apply the eventlet patch
- run_command(['patch',
- '.nova-venv/lib/python2.6/site-packages/eventlet/green/subprocess.py',
- 'contrib/redhat-eventlet.patch'])
+ self.apply_patch(os.path.join(VENV, 'lib', PY_VERSION, 'site-packages',
+ 'eventlet/green/subprocess.py'),
+ 'contrib/redhat-eventlet.patch')
def get_distro():