if not check_for_freetype(): sys.exit(1) build_ft2font(ext_modules, packages) build_ttconv(ext_modules, packages) build_contour(ext_modules, packages) build_delaunay(ext_modules, packages) build_nxutils(ext_modules, packages) build_path(ext_modules, packages) print_raw("") print_raw("OPTIONAL BACKEND DEPENDENCIES") has_libpng = check_for_libpng() if has_libpng and options['build_agg']: build_agg(ext_modules, packages) rc['backend'] = 'Agg' else: rc['backend'] = 'SVG' if has_libpng and options['build_image']: build_image(ext_modules, packages) if has_libpng and options['build_agg'] or options['build_image']: build_png(ext_modules, packages) 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
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) rc["backend"] = "GTKAgg" if BUILD_AGG: build_agg(ext_modules, packages, NUMERIX) if rc["backend"] == "PS": rc["backend"] = "Agg" if BUILD_FT2FONT: build_ft2font(ext_modules, packages) if BUILD_WINDOWING and sys.platform == "win32": build_windowing(ext_modules, packages) if BUILD_IMAGE: build_image(ext_modules, packages, NUMERIX) if 1: # I don't think we need to make these optional build_contour(ext_modules, packages, NUMERIX)
if (BUILD_FONTTOOLS or BUILD_AGG or BUILD_GTKAGG or BUILD_TKAGG or BUILD_GTKGD or BUILD_FT2FONT): build_fonttools(ext_modules, packages) # we need to manually install FontTools.pth since we can't use # extra_path which puts all packages -- matplotlib, ttfquery and # FontTools -- in the FontTools subdir sitep = distutils.sysconfig.get_python_lib() data_files.append( (sitep, ['FontTools.pth']) ) if BUILD_GTKGD: build_fonttools(ext_modules, packages) build_gtkgd(ext_modules, packages) if BUILD_AGG: build_fonttools(ext_modules, packages) build_agg(ext_modules, packages) if BUILD_GTKAGG: build_fonttools(ext_modules, packages) build_agg(ext_modules, packages) build_gtkagg(ext_modules, packages) if BUILD_TKAGG: build_fonttools(ext_modules, packages) build_agg(ext_modules, packages) build_tkagg(ext_modules, packages) if BUILD_FT2FONT: build_fonttools(ext_modules, packages) build_ft2font(ext_modules, packages)
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 except ImportError: print 'TKAgg requires TkInter' else: BUILD_AGG = 1 build_tkagg(ext_modules, packages, NUMERIX) if BUILD_AGG: build_agg(ext_modules, packages, NUMERIX) if BUILD_FT2FONT: build_ft2font(ext_modules, packages) if BUILD_WINDOWING and sys.platform=='win32': build_windowing(ext_modules, packages) if BUILD_IMAGE: build_image(ext_modules, packages, NUMERIX) if 1: # I don't think we need to make these optional build_contour(ext_modules, packages, NUMERIX) for mod in ext_modules: if VERBOSE: