Automatically install dependencies when using setup.py

Refs #265.