piranha/opster — pull request #50 by oscarbenjamin (2012-07-11 23:53:17+00:00)
Title: Don't use ImportError to check python version in setup.py

The check for `ImportError` with `build_py_2to3` fails to correctly detect the python version in some cases (I found this when installing opster automatically as a dependency another package in a virtualenv). This patch explicitly checks the python version rather than relying on `ImportError`.