Merge lp:~vishvananda/nova/virtualenv-fix into lp:~hudson-openstack/nova/trunk

Proposed by Vish Ishaya
Status: Merged
Approved by: Monty Taylor
Approved revision: 170
Merged at revision: 171
Proposed branch: lp:~vishvananda/nova/virtualenv-fix
Merge into: lp:~hudson-openstack/nova/trunk
Diff against target: 52 lines (+4/-4)
4 files modified
Makefile (+1/-1)
tools/activate_venv.sh (+1/-0)
tools/install_venv.py (+1/-2)
tools/with_venv.sh (+1/-1)
To merge this branch: bzr merge lp:~vishvananda/nova/virtualenv-fix
Reviewer Review Type Date Requested Status
Jay Pipes (community) Approve
Monty Taylor (community) Approve
Review via email: mp+31005@code.launchpad.net

Commit message

A few minor fixes to the virtualenv installer that were breaking on ubuntu.

Description of the change

A few minor fixes to the virtualenv installer that were breaking on ubuntu.

There is one remaining issue: m2crypto fails to build and install due to lack of dependencies. On ubuntu this can be fixed by running apt-get build-dep python-m2crypto. Not sure of the best way to make the installer check for the dependencies, since there are multiple.

To post a comment you must log in.
Revision history for this message
Monty Taylor (mordred) wrote :

lgtm

review: Approve
Revision history for this message
Jay Pipes (jaypipes) wrote :

yep, looks good.

review: Approve
Revision history for this message
Soren Hansen (soren) wrote :

On Tue, Jul 27, 2010 at 02:02:42AM -0000, vishvananda wrote:
> There is one remaining issue: m2crypto fails to build and install due
> to lack of dependencies. On ubuntu this can be fixed by running
> apt-get build-dep python-m2crypto. Not sure of the best way to make
> the installer check for the dependencies, since there are multiple.

This may seem like a silly question (I don't use virtualenv myself), but
why not just use the python-m2crypto package from Ubuntu?

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Makefile'
2--- Makefile 2010-07-26 21:16:49 +0000
3+++ Makefile 2010-07-27 02:02:41 +0000
4@@ -15,7 +15,7 @@
5 rm -rf keys
6 rm -rf instances
7 rm -rf networks
8- rm run_tests.err.log
9+ rm -f run_tests.err.log
10
11 clean-all: clean
12 rm -rf $(venv)
13
14=== modified file 'tools/activate_venv.sh'
15--- tools/activate_venv.sh 2010-07-26 21:16:49 +0000
16+++ tools/activate_venv.sh 2010-07-27 02:02:41 +0000
17@@ -1,3 +1,4 @@
18+#!/bin/bash
19 _TOOLS=`dirname $0`
20 _VENV=$_TOOLS/../.nova-venv
21 source $_VENV/bin/activate
22
23=== modified file 'tools/install_venv.py'
24--- tools/install_venv.py 2010-07-26 21:16:49 +0000
25+++ tools/install_venv.py 2010-07-27 02:02:41 +0000
26@@ -5,7 +5,6 @@
27 import os
28 import subprocess
29 import sys
30-import textwrap
31
32
33 ROOT = os.path.dirname(os.path.dirname(__file__))
34@@ -80,7 +79,7 @@
35
36 $ tools/with_venv.sh <your command>
37
38- Also, run_tests.sh will automatically use the virtualenv.
39+ Also, make test will automatically use the virtualenv.
40 """
41 print help
42
43
44=== modified file 'tools/with_venv.sh'
45--- tools/with_venv.sh 2010-07-26 21:16:49 +0000
46+++ tools/with_venv.sh 2010-07-27 02:02:41 +0000
47@@ -1,4 +1,4 @@
48-#!/bin/sh
49+#!/bin/bash
50 TOOLS=`dirname $0`
51 VENV=$TOOLS/../.nova-venv
52 source $VENV/bin/activate && $@