|
26 | 26 | import glob |
27 | 27 | from distutils.core import setup |
28 | 28 | from setupext import build_agg, build_gtkagg, build_tkagg, build_wxagg,\ |
29 | | - build_ft2font, build_image, build_windowing, build_path, \ |
| 29 | + build_macosx, build_ft2font, build_image, build_windowing, build_path, \ |
30 | 30 | build_contour, build_delaunay, build_nxutils, build_traits, build_gdk, \ |
31 | 31 | build_ttconv, print_line, print_status, print_message, \ |
32 | 32 | print_raw, check_for_freetype, check_for_libpng, check_for_gtk, \ |
33 | | - check_for_tk, check_for_wx, check_for_numpy, check_for_qt, check_for_qt4, \ |
34 | | - check_for_cairo, check_provide_traits, check_provide_pytz, \ |
35 | | - check_provide_dateutil, check_provide_configobj, check_for_dvipng, \ |
36 | | - check_for_ghostscript, check_for_latex, check_for_pdftops, \ |
37 | | - check_for_datetime, options, build_png |
| 33 | + check_for_tk, check_for_wx, check_for_macosx, check_for_numpy, \ |
| 34 | + check_for_qt, check_for_qt4, check_for_cairo, check_provide_traits, \ |
| 35 | + check_provide_pytz, check_provide_dateutil, check_provide_configobj, \ |
| 36 | + check_for_dvipng, check_for_ghostscript, check_for_latex, \ |
| 37 | + check_for_pdftops, check_for_datetime, options, build_png |
38 | 38 | #import distutils.sysconfig |
39 | 39 |
|
40 | 40 | # jdh |
|
149 | 149 | build_gtkagg(ext_modules, packages) |
150 | 150 | rc['backend'] = 'GTKAgg' |
151 | 151 |
|
| 152 | +if options['build_macosx']: |
| 153 | + if check_for_macosx() or (options['build_macosx'] is True): |
| 154 | + build_macosx(ext_modules, packages) |
| 155 | + rc['backend'] = 'MacOSX' |
| 156 | + |
152 | 157 | # These are informational only. We don't build any extensions for them. |
153 | 158 | check_for_qt() |
154 | 159 | check_for_qt4() |
|
0 commit comments