Skip to content

Commit f60a16c

Browse files
committed
Add __version_info__ as a tuple-based version identifier
1 parent e69e2e6 commit f60a16c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@
115115
# this is computed based on the number of commits since the last tag.
116116
from ._version import get_versions
117117
__version__ = str(get_versions()['version'])
118+
__version_info__ = tuple(map(int, __version__.split('.post')[0].split('.')))
119+
118120
del get_versions
119121

120122
_log = logging.getLogger(__name__)

0 commit comments

Comments
 (0)