예제 #1
0
        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()

print_raw("")
print_raw("OPTIONAL DATE/TIMEZONE DEPENDENCIES")
예제 #2
0
            not (isinstance(BUILD_WXAGG, str) and BUILD_WXAGG.lower() == "auto"),  # don't about if BUILD_WXAGG
        )  # is "auto"
        rc["backend"] = "WXAgg"

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:
예제 #3
0
    # 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)

setup(name="matplotlib",
      version= '0.51d',
      description = "Matlab style python plotting package",
      author = "John D. Hunter",
      author_email="*****@*****.**",
예제 #4
0
        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
    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)