improved diagnostics in setup.py