Exemplo n.º 1
0
        add_dateutil()
    else:
        # only add them if we need them
        try:
            import dateutil
        except ImportError:
            add_dateutil()

        try:
            import pytz
        except ImportError:
            add_pytz()

build_swigagg(ext_modules, packages)
build_transforms(ext_modules, packages, NUMERIX)
build_enthought(ext_modules, packages)

if BUILD_GTK:
    try:
        import gtk
    except ImportError:
        print "GTK requires pygtk"
        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:
Exemplo n.º 2
0
        # always add these to the win32 installer
        add_pytz()
        add_dateutil()
    else:
        # only add them if we need them
        try: import dateutil
        except ImportError:
            add_dateutil()

        try: import pytz
        except ImportError:
            add_pytz()

build_swigagg(ext_modules, packages)
build_transforms(ext_modules, packages, NUMERIX)
build_enthought(ext_modules, packages)

if BUILD_GTK:
    try:
        import gtk
    except ImportError:
        print 'GTK requires pygtk'
        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: