Fix logging in setup.py

logging requires a call to logging.basicConfig before logging.getLogger
is useful.