if options['build_wxagg']: if check_for_wx() or (options['build_wxagg'] is True): options['build_agg'] = 1 import wx if getattr(wx, '__version__', '0.0')[0:3] < '2.8': build_wxagg(ext_modules, packages) wxagg_backend_status = "yes" else: print_message("WxAgg extension not required for wxPython >= 2.8") rc['backend'] = 'WXAgg' hasgtk = check_for_gtk() if options['build_gtk']: if hasgtk or (options['build_gtk'] is True): build_gdk(ext_modules, packages) if options['build_gtkagg']: if hasgtk or (options['build_gtkagg'] is True): options['build_agg'] = 1 build_gtkagg(ext_modules, packages) rc['backend'] = 'GTKAgg' if options['build_macosx']: if check_for_macosx() or (options['build_macosx'] is True): build_macosx(ext_modules, packages) rc['backend'] = 'MacOSX' # These are informational only. We don't build any extensions for them. check_for_qt() check_for_qt4() check_for_cairo()
if options['build_windowing'] and sys.platform=='win32': build_windowing(ext_modules, packages) # the options can be True, False, or 'auto'. If True, try to build # regardless of the lack of dependencies. If auto, silently skip # when dependencies are missing. if options['build_tkagg']: if check_for_tk() or (options['build_tkagg'] is True): options['build_agg'] = 1 build_tkagg(ext_modules, packages) rc['backend'] = 'TkAgg' hasgtk = check_for_gtk() if options['build_gtk']: if hasgtk or (options['build_gtk'] is True): build_gdk(ext_modules, packages) if options['build_gtkagg']: if hasgtk or (options['build_gtkagg'] is True): options['build_agg'] = 1 build_gtkagg(ext_modules, packages) rc['backend'] = 'GTKAgg' if options['build_macosx']: if check_for_macosx() or (options['build_macosx'] is True): build_macosx(ext_modules, packages) rc['backend'] = 'MacOSX' # These are informational only. We don't build any extensions for them. check_for_qt() check_for_qt4() check_for_pyside()
build_swigagg(ext_modules, packages) build_transforms(ext_modules, packages, NUMERIX) build_enthought(ext_modules, packages) if BUILD_GTK: try: import gtk except ImportError: print "GTK requires pygtk" BUILD_GTK = 0 except RuntimeError: print "pygtk present but import failed" if BUILD_GTK: build_gdk(ext_modules, packages, NUMERIX) rc["backend"] = "GTK" if BUILD_TKAGG: try: import Tkinter except ImportError: print "TKAgg requires TkInter" else: BUILD_AGG = 1 build_tkagg(ext_modules, packages, NUMERIX) rc["backend"] = "TkAgg" if BUILD_WXAGG: try: import wxPython
except ImportError: add_pytz() build_swigagg(ext_modules, packages) build_transforms(ext_modules, packages, NUMERIX) build_enthought(ext_modules, packages) if BUILD_GTK: try: import gtk except ImportError: print 'GTK requires pygtk' BUILD_GTK=0 except RuntimeError: print 'pygtk present but import failed' build_gdk(ext_modules, packages, NUMERIX) if BUILD_GTKAGG: try: import gtk except ImportError: print 'GTKAgg requires pygtk' BUILD_GTKAGG=0 except RuntimeError: print 'pygtk present but import failed' if BUILD_GTKAGG: BUILD_AGG = 1 build_gtkagg(ext_modules, packages, NUMERIX) if BUILD_TKAGG: try: import Tkinter