Wrap `setup.py` contents in a main() function to avoid exceptions

Fixes #7