Fixes to the virtualenv installer
This commit is contained in:
parent
ee90e3db4c
commit
f0ed2c84c9
2
Makefile
2
Makefile
@ -15,7 +15,7 @@ clean:
|
|||||||
rm -rf keys
|
rm -rf keys
|
||||||
rm -rf instances
|
rm -rf instances
|
||||||
rm -rf networks
|
rm -rf networks
|
||||||
rm run_tests.err.log
|
rm -f run_tests.err.log
|
||||||
|
|
||||||
clean-all: clean
|
clean-all: clean
|
||||||
rm -rf $(venv)
|
rm -rf $(venv)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
_TOOLS=`dirname $0`
|
_TOOLS=`dirname $0`
|
||||||
_VENV=$_TOOLS/../.nova-venv
|
_VENV=$_TOOLS/../.nova-venv
|
||||||
source $_VENV/bin/activate
|
source $_VENV/bin/activate
|
||||||
|
@ -5,7 +5,6 @@ Installation script for Nova's development virtualenv
|
|||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import textwrap
|
|
||||||
|
|
||||||
|
|
||||||
ROOT = os.path.dirname(os.path.dirname(__file__))
|
ROOT = os.path.dirname(os.path.dirname(__file__))
|
||||||
@ -80,7 +79,7 @@ def print_help():
|
|||||||
|
|
||||||
$ tools/with_venv.sh <your command>
|
$ tools/with_venv.sh <your command>
|
||||||
|
|
||||||
Also, run_tests.sh will automatically use the virtualenv.
|
Also, make test will automatically use the virtualenv.
|
||||||
"""
|
"""
|
||||||
print help
|
print help
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
TOOLS=`dirname $0`
|
TOOLS=`dirname $0`
|
||||||
VENV=$TOOLS/../.nova-venv
|
VENV=$TOOLS/../.nova-venv
|
||||||
source $VENV/bin/activate && $@
|
source $VENV/bin/activate && $@
|
||||||
|
Loading…
Reference in New Issue
Block a user