#!/bin/bash
set -e
CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "Updating packages"

deactivate || true
source envs/py2/bin/activate
pip install -r $CWD/config/requirements_py2django.txt

deactivate || true
source envs/py3/bin/activate
pip install -r $CWD/config/requirements_py3django.txt

deactivate || true
source envs/pypy/bin/activate
pip install -r $CWD/config/requirements_pypydjango.txt

# NPM: config/package.json
npm install config
