Restore __version_info__

This commit is contained in:
Seth House 2012-10-24 18:09:36 -06:00
parent 534bbb0488
commit 009930cc66

View File

@ -1,6 +1,7 @@
import sys import sys
__version__ = '0.10.4' __version_info__ = (0, 10, 4)
__version__ = '.'.join(map(str, __version_info__))
# If we can get a version from Git use that instead, otherwise carry on # If we can get a version from Git use that instead, otherwise carry on
try: try:
@ -14,6 +15,7 @@ try:
out, err = p.communicate() out, err = p.communicate()
if out: if out:
__version__ = '{0}'.format(out.strip().lstrip('v')) __version__ = '{0}'.format(out.strip().lstrip('v'))
__version_info__ = tuple(__version__.split('-', 1)[0].split('.'))
except Exception: except Exception:
pass pass