None of distutils/setuptools/pip/... have anything that works well. Anyway we can't rely on anything in pip or setuptools, because it may not be installed. +1 for copying the ``NumpyVersion`` class from scipy. Maybe as ``np.lib.NumpyVersion``?

And because we can't easily put it in ``version.py``, maybe add there a ``(major, minor, micro)`` tuple?