diff options
| author | Jenkins <jenkins@review.openstack.org> | 2011-12-06 21:27:47 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2011-12-06 21:27:47 +0000 |
| commit | 154cd05c846f4e6eb03613c949e53ce1aaab1c6c (patch) | |
| tree | 5016a1832efc6fd15bf6eab6029fb031ac294d08 | |
| parent | 2b4ece610e79f3f1c0e480004d2a52cbced6f45c (diff) | |
| parent | dbbd6cf1079ef46de3e9ec11db0eb824a3875099 (diff) | |
| download | nova-154cd05c846f4e6eb03613c949e53ce1aaab1c6c.tar.gz nova-154cd05c846f4e6eb03613c949e53ce1aaab1c6c.tar.xz nova-154cd05c846f4e6eb03613c949e53ce1aaab1c6c.zip | |
Merge "Use system M2Crypto package on Oneiric, bug 892271"
| -rw-r--r-- | tools/install_venv.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/install_venv.py b/tools/install_venv.py index f1d2ea86c..e5279a840 100644 --- a/tools/install_venv.py +++ b/tools/install_venv.py @@ -27,6 +27,7 @@ import optparse import os import subprocess import sys +import platform ROOT = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) @@ -98,6 +99,17 @@ class Distro(object): pass +class UbuntuOneiric(Distro): + """Oneiric specific installation steps""" + + def install_m2crypto(self): + """ + The pip installed version of m2crypto has problems on oneiric + """ + run_command(['sudo', 'apt-get', 'install', '-y', + "python-m2crypto"]) + + class Fedora(Distro): """This covers all Fedora-based distributions. @@ -155,6 +167,8 @@ def get_distro(): if os.path.exists('/etc/fedora-release') or \ os.path.exists('/etc/redhat-release'): return Fedora() + elif platform.linux_distribution()[2] == 'oneiric': + return UbuntuOneiric() else: return Distro() |
