#!/bin/bash
set -e
set -x

[ "$SKIP_PYTHON_DEPS" = "" ] || exit 0

# Install Mailpile Python Dependencies with PIP. 
#
cd "$SOURCE_DIR"
if [ "$KEEP_BUNDLE" = "" ]; then
    pip install -r requirements.txt --ignore-installed
else
    # This is the KEEP_BUNDLE mode; just add new things
    pip install -r requirements.txt
fi
