#!/bin/bash

pushd .

# rtmidi is the wrong package
pip uninstall -q rtmidi

pip install -r requirements.txt && \
    pip install -r test_requirements.txt && \
    pip install -r doc/doc_requirements.txt && \
    pip install python-rtmidi && \
    pip install mido && \
    pip install pynput && \
    pip install opencv-python && \
    python setup.py develop && \
    cd ../BiblioPixelAnimations && \
    python setup.py develop

# TODO: the last two lines are janky - they are required because of a bug in
# BiblioPixelAnimations's setup.py, but they won't work on every system.  We
# should fix that bug and then remove the last two lines

popd

git remote add rec git@github.com:rec/BiblioPixel.git
git remote add upstream git@github.com:ManiacalLabs/BiblioPixel.git
