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() check_for_cairo() print_raw("") print_raw("OPTIONAL DATE/TIMEZONE DEPENDENCIES") hasdatetime = check_for_datetime() provide_dateutil = check_provide_dateutil(hasdatetime) provide_pytz = check_provide_pytz(hasdatetime)
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() print_raw("") print_raw("OPTIONAL DATE/TIMEZONE DEPENDENCIES") hasdatetime = check_for_datetime() provide_dateutil = check_provide_dateutil(hasdatetime) provide_pytz = check_provide_pytz(hasdatetime)
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" check_for_qt() check_for_qt4() check_for_cairo() print_raw("") print_raw("OPTIONAL DATE/TIMEZONE DEPENDENCIES") hasdatetime = check_for_datetime() provide_dateutil = check_provide_dateutil(hasdatetime) provide_pytz = check_provide_pytz(hasdatetime) if hasdatetime: # dates require python23 datetime def add_pytz(): packages.append("pytz") resources = ["zone.tab", "locales/pytz.pot"]