Add a check to see if virtualenv is installed.
This commit is contained in:
parent
97c6d7ed25
commit
951fe2f7ed
4
dev
4
dev
|
@ -1,11 +1,11 @@
|
|||
#!/bin/sh
|
||||
VENV=../venv.mitmproxy
|
||||
|
||||
virtualenv $VENV
|
||||
virtualenv $VENV || { echo 'virtualenv is not installed. Exiting.' ; exit 1; }
|
||||
source $VENV/bin/activate
|
||||
pip install --src .. -r requirements.txt
|
||||
|
||||
echo ""
|
||||
echo "* Created virtualenv environment in $VENV."
|
||||
echo "* Installed all dependencies into the virtualenv."
|
||||
echo "* Activated virtualenv environment."
|
||||
echo "* Activated virtualenv environment."
|
||||
|
|
4
dev.bat
4
dev.bat
|
@ -1,11 +1,11 @@
|
|||
@echo off
|
||||
set VENV=..\venv.mitmproxy
|
||||
|
||||
virtualenv %VENV%
|
||||
virtualenv %VENV% || echo virtualenv is not installed. Exiting.
|
||||
call %VENV%\Scripts\activate.bat
|
||||
pip install --src .. -r requirements.txt
|
||||
|
||||
echo.
|
||||
echo * Created virtualenv environment in %VENV%.
|
||||
echo * Installed all dependencies into the virtualenv.
|
||||
echo * Activated virtualenv environment.
|
||||
echo * Activated virtualenv environment.
|
||||
|
|
Loading…
Reference in New Issue