Detect virtualenv and quit in that case

This commit is contained in:
Matthias 2019-08-07 21:44:47 +02:00
parent 757538f114
commit 831e708897

View File

@ -11,6 +11,12 @@ function check_installed_pip() {
# Check which python version is installed # Check which python version is installed
function check_installed_python() { function check_installed_python() {
if [ -n "${VIRTUAL_ENV}" ]; then
echo "Please deactivate your virtual environment before running setup.sh."
echo "You can do this by running 'deactivate'."
exit 2
fi
which python3.7 which python3.7
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "using Python 3.7" echo "using Python 3.7"