Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6c4277

Browse files
committed
Only display the raw version (not the SVN revision, which only refers
to one file and is basically wrong.) svn path=/trunk/matplotlib/; revision=3661
1 parent f7082d1 commit e6c4277

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,12 @@
108108
BUILD_NXUTILS = 1
109109

110110
for line in file('lib/matplotlib/__init__.py').readlines():
111-
if (line.startswith('__version__') or
112-
line.startswith('__revision__') or
113-
line.startswith('__date__')):
111+
if (line.startswith('__version__')):
114112
exec(line.strip())
115113

116114
print_line()
117115
print_raw("BUILDING MATPLOTLIB")
118-
print_status('matplotlib', '%s (r%s)' % (__version__, __revision__.split()[-2]))
116+
print_status('matplotlib', __version__)
119117
print_status('python', sys.version)
120118
print_status('platform', sys.platform)
121119
if sys.platform == 'win32':

0 commit comments

Comments
 (0)