ENH: make setup.sh more declarative