# Clone the repo and enter it's directory
git clone git@github.com:OfflineIMAP/offlineimap3.git
cd offlineimap3

# Setup a virtualenv to prevent cluttering of global directories
echo "venv/" >> .gitignore
python3 -m venv ./venv

# Install requirements for offlineimap3 (they're not specified in setup.py...)
./venv/bin/pip install -r requirements.txt

# Activate the virtualenv to ensure the following commands use the right one
. ./venv/bin/activate

# Build the package and install it into the virtualenv
make clean && make
python setup.py install
