23
23
If you are sufficiently masochistic that you want to build this
24
24
yourself, contact me and I'll send you win32_static as a zip file.
25
25
26
- python setup.py build --compiler=mingw32 bdist_wininst --install-script postinstall.py > build23.out
26
+ > python setup.py build --compiler=mingw32 bdist_wininst --install-script postinstall.py > build23.out
27
27
28
28
"""
29
29
49
49
50
50
BUILT_AGG = False
51
51
BUILT_FONTTOOLS = False
52
- BUILT_GTKGD = False
52
+ BUILT_FT2FONT = False
53
53
BUILT_GTKAGG = False
54
+ BUILT_GTKGD = False
55
+ BUILT_IMAGE = False
54
56
BUILT_TKAGG = False
55
- BUILT_FT2FONT = False
56
57
57
58
def getoutput (s ):
58
59
'get the output of a system command'
@@ -67,8 +68,6 @@ def add_agg_flags(module):
67
68
# before adding the freetype flags since -z comes later
68
69
module .libraries .append ('png' )
69
70
70
- add_ft2font_flags (module )
71
-
72
71
module .include_dirs .extend (['src' ,'agg2/include' ])
73
72
74
73
# put these later for correct link order
@@ -181,7 +180,8 @@ def build_gtkagg(ext_modules, packages):
181
180
182
181
# add agg flags before pygtk because agg only supports freetype1
183
182
# and pygtk includes freetype2. This is a bit fragile.
184
-
183
+
184
+ add_ft2font_flags (module )
185
185
add_agg_flags (module )
186
186
add_pygtk_flags (module )
187
187
@@ -201,7 +201,9 @@ def build_tkagg(ext_modules, packages):
201
201
# add agg flags before pygtk because agg only supports freetype1
202
202
# and pygtk includes freetype2. This is a bit fragile.
203
203
204
+
204
205
add_tk_flags (module ) # do this first
206
+ add_ft2font_flags (module )
205
207
add_agg_flags (module )
206
208
207
209
@@ -221,9 +223,26 @@ def build_agg(ext_modules, packages):
221
223
deps
222
224
,
223
225
)
226
+ add_ft2font_flags (module )
224
227
add_agg_flags (module )
225
228
ext_modules .append (module )
226
229
BUILT_AGG = True
230
+
231
+ def build_image (ext_modules , packages ):
232
+ global BUILT_IMAGE
233
+ if BUILT_IMAGE : return # only build it if you you haven't already
234
+
235
+ deps = ['src/image.cpp' ]
236
+ deps .extend (glob .glob ('agg2/src/*.cpp' ))
237
+
238
+ module = Extension (
239
+ 'matplotlib.image' ,
240
+ deps
241
+ ,
242
+ )
243
+ add_agg_flags (module )
244
+ ext_modules .append (module )
245
+ BUILT_IMAGE = True
227
246
228
247
def build_fonttools (ext_modules , packages ):
229
248
0 commit comments