Exemple #1
0
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
# 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'

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']:
Exemple #2
0
        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:
        if BUILD_WXAGG != "auto":
            print "WXAgg's accelerator requires wxPython"
        BUILD_WXAGG = 0
    else:
        BUILD_AGG = 1
        build_wxagg(
            ext_modules,
            packages,
            NUMERIX,
Exemple #3
0
    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)

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
Exemple #4
0
        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
    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