make dev script more robust, fix #556

This commit is contained in:
Maximilian Hils 2015-04-13 17:17:18 +02:00
parent ba149d90ad
commit cbf6cad852
2 changed files with 6 additions and 2 deletions

5
dev
View File

@ -1,7 +1,8 @@
#!/bin/sh #!/bin/bash
set -e
VENV=../venv.mitmproxy VENV=../venv.mitmproxy
virtualenv $VENV python2 -m virtualenv $VENV
source $VENV/bin/activate source $VENV/bin/activate
pip install --src .. -r requirements.txt pip install --src .. -r requirements.txt

View File

@ -2,8 +2,11 @@
set VENV=..\venv.mitmproxy set VENV=..\venv.mitmproxy
virtualenv %VENV% virtualenv %VENV%
if %errorlevel% neq 0 exit /b %errorlevel%
call %VENV%\Scripts\activate.bat call %VENV%\Scripts\activate.bat
if %errorlevel% neq 0 exit /b %errorlevel%
pip install --src .. -r requirements.txt pip install --src .. -r requirements.txt
if %errorlevel% neq 0 exit /b %errorlevel%
echo. echo.
echo * Created virtualenv environment in %VENV%. echo * Created virtualenv environment in %VENV%.