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

Skip to content

Commit 2a7d57f

Browse files
committed
some numarray workarounds
svn path=/trunk/matplotlib/; revision=385
1 parent 7739023 commit 2a7d57f

3 files changed

Lines changed: 22 additions & 10 deletions

File tree

DEVNOTES

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,13 @@ http://matplotlib.sourceforge.net
5757
5) go to https://sourceforge.net/project/admin/?group_id=80706 and do a
5858
# file release
5959

60+
Standard reminders for numarray build
61+
62+
- change numerix in matplotlibrc *and* setup.py
63+
64+
- change backend to tkagg in rc
65+
66+
- email users monitoring the package and me when you are done and
67+
I'll send the announcement
68+
6069
Trove categorization is under Public info on the admin page

examples/backend_driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def drive(backend):
8989
times = {}
9090
backends = ['PS', 'GD', 'Paint', 'Agg', 'Template']
9191
#backends.extend([ 'GTK', 'WX', 'TkAgg'])
92-
#backends = [ 'PS']
92+
backends = [ 'Agg']
9393
#backends = [ 'Agg', 'PS', 'Template']
9494

9595
for backend in backends:

setup.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
You will need to have freetype, libpng and zlib installed to compile
3+
matplotlib, inlcuding the *-devel versions of these libraries if you
4+
are using a package manager like RPM or debian.
5+
26
matplotlib has added some extension module code which can optionally
37
be built by setting the appropriate flag below.
48
@@ -8,10 +12,7 @@
812

913
# The NUMERIX
1014
NUMERIX = 'Numeric' # or numarray
11-
# build the freetype2 interface - this is required for mathtext
12-
# Requires freetype2, and libz
13-
BUILD_FT2FONT = 1
14-
15+
#NUMERIX = 'numarray' # or numarray
1516

1617
# build the image support module - requires agg and Numeric or
1718
# numarray. You can build the image module with either Numeric or
@@ -75,13 +76,11 @@
7576
libraries = ['stdc++', 'm'],
7677
include_dirs = ['src', '.'],
7778
)
78-
if NUMERIX.lower().find('numarray')>=0:
79-
modtrans.extra_compile_args.append('-DNUMARRAY')
8079

8180
ext_modules = [modtrans]
8281

8382

84-
83+
BUILD_FT2FONT = 1
8584
packages = [
8685
'matplotlib',
8786
'matplotlib/backends',
@@ -104,8 +103,9 @@
104103
build_tkagg(ext_modules, packages)
105104

106105

106+
107107
if BUILD_AGG:
108-
BUILD_FT2FONT = 1
108+
109109
build_agg(ext_modules, packages)
110110

111111
if BUILD_FT2FONT:
@@ -118,7 +118,10 @@
118118
build_image(ext_modules, packages, NUMERIX)
119119

120120
for mod in ext_modules:
121-
if VERBOSE: mod.extra_compile_args.append('-DVERBOSE')
121+
if VERBOSE:
122+
mod.extra_compile_args.append('-DVERBOSE')
123+
if NUMERIX.lower().find('numarray')>=0:
124+
mod.extra_compile_args.append('-DNUMARRAY')
122125

123126

124127

0 commit comments

Comments
 (0)