def chop_package(fname): badstr = os.path.join('lib', 'matplotlib', '') assert fname.startswith(badstr) result = fname[len(badstr):] return result baseline_images = [chop_package(f) for f in baseline_images] package_data['matplotlib'].extend(baseline_images) if not check_for_numpy(): sys.exit(1) 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'
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) setup(name="matplotlib", version= '0.51d', description = "Matlab style python plotting package", author = "John D. Hunter", author_email="*****@*****.**", url = "http://matplotlib.sourceforge.net", long_description = """ matplotlib strives to produce publication quality 2D graphics using matlab plotting for inspiration. Although the main lib is object oriented, there is a functional matlab style interface for people coming from matlab. """, packages = packages, platforms='any',