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

Skip to content

Commit 82ef1e3

Browse files
author
Paul Barret
committed
Changed version to __version__ and read it from __init__.py.
svn path=/trunk/matplotlib/; revision=263
1 parent 608bada commit 82ef1e3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@
5151
build_ft2font, build_image, build_windowing
5252
import distutils.sysconfig
5353

54+
for line in file('matplotlib/__init__.py').readlines():
55+
if line[:11] == '__version__':
56+
exec(line)
57+
break
58+
5459
data = []
5560
data.extend(glob.glob('fonts/afm/*.afm'))
5661
data.extend(glob.glob('fonts/ttf/*.ttf'))
@@ -97,7 +102,7 @@
97102
build_image(ext_modules, packages, BUILD_IMAGE)
98103

99104
setup(name="matplotlib",
100-
version= '0.53.1',
105+
version= __version__,
101106
description = "Matlab style python plotting package",
102107
author = "John D. Hunter",
103108
author_email="[email protected]",

0 commit comments

Comments
 (0)