Add a check to see if virtualenv is installed.

This commit is contained in:
Jim Shaver 2015-06-23 20:17:57 -05:00
parent 97c6d7ed25
commit 951fe2f7ed
2 changed files with 4 additions and 4 deletions

4
dev
View File

@ -1,11 +1,11 @@
#!/bin/sh #!/bin/sh
VENV=../venv.mitmproxy VENV=../venv.mitmproxy
virtualenv $VENV virtualenv $VENV || { echo 'virtualenv is not installed. Exiting.' ; exit 1; }
source $VENV/bin/activate source $VENV/bin/activate
pip install --src .. -r requirements.txt pip install --src .. -r requirements.txt
echo "" echo ""
echo "* Created virtualenv environment in $VENV." echo "* Created virtualenv environment in $VENV."
echo "* Installed all dependencies into the virtualenv." echo "* Installed all dependencies into the virtualenv."
echo "* Activated virtualenv environment." echo "* Activated virtualenv environment."

View File

@ -1,11 +1,11 @@
@echo off @echo off
set VENV=..\venv.mitmproxy set VENV=..\venv.mitmproxy
virtualenv %VENV% virtualenv %VENV% || echo virtualenv is not installed. Exiting.
call %VENV%\Scripts\activate.bat call %VENV%\Scripts\activate.bat
pip install --src .. -r requirements.txt pip install --src .. -r requirements.txt
echo. echo.
echo * Created virtualenv environment in %VENV%. echo * Created virtualenv environment in %VENV%.
echo * Installed all dependencies into the virtualenv. echo * Installed all dependencies into the virtualenv.
echo * Activated virtualenv environment. echo * Activated virtualenv environment.