I think the current version of setup.py is assuming you are using python
2.7 or later.
Line 24 is
if (version_info.major, version_info.minor) > (2, 5):
but named attributes for version_info were only added in python 2.7
A simple fix is
if (version_info, version_info) > (2, 5):