|
1 | 1 | """ |
| 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 | +
|
2 | 6 | matplotlib has added some extension module code which can optionally |
3 | 7 | be built by setting the appropriate flag below. |
4 | 8 |
|
|
8 | 12 |
|
9 | 13 | # The NUMERIX |
10 | 14 | 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 |
15 | 16 |
|
16 | 17 | # build the image support module - requires agg and Numeric or |
17 | 18 | # numarray. You can build the image module with either Numeric or |
|
75 | 76 | libraries = ['stdc++', 'm'], |
76 | 77 | include_dirs = ['src', '.'], |
77 | 78 | ) |
78 | | -if NUMERIX.lower().find('numarray')>=0: |
79 | | - modtrans.extra_compile_args.append('-DNUMARRAY') |
80 | 79 |
|
81 | 80 | ext_modules = [modtrans] |
82 | 81 |
|
83 | 82 |
|
84 | | - |
| 83 | +BUILD_FT2FONT = 1 |
85 | 84 | packages = [ |
86 | 85 | 'matplotlib', |
87 | 86 | 'matplotlib/backends', |
|
104 | 103 | build_tkagg(ext_modules, packages) |
105 | 104 |
|
106 | 105 |
|
| 106 | + |
107 | 107 | if BUILD_AGG: |
108 | | - BUILD_FT2FONT = 1 |
| 108 | + |
109 | 109 | build_agg(ext_modules, packages) |
110 | 110 |
|
111 | 111 | if BUILD_FT2FONT: |
|
118 | 118 | build_image(ext_modules, packages, NUMERIX) |
119 | 119 |
|
120 | 120 | 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') |
122 | 125 |
|
123 | 126 |
|
124 | 127 |
|
|
0 commit comments