Example #1
0
        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"

if BUILD_GTK:
    build_gdk(ext_modules, packages, NUMERIX)
    rc["backend"] = "GTK"
Example #2
0
    if sys.platform=='win32':
        # 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
Example #3
0
        
if not havesubprocess:
    packages.append('subprocess')
    if sys.platform == 'win32':
        build_subprocess(ext_modules, packages)

if not check_for_freetype():
    sys.exit(1)
    
build_ft2font(ext_modules, packages)
build_ttconv(ext_modules, packages)
build_contour(ext_modules, packages)
build_nxutils(ext_modules, packages)

build_swigagg(ext_modules, packages)
build_transforms(ext_modules, packages)

print_raw("")
print_raw("OPTIONAL BACKEND DEPENDENCIES")

if check_for_libpng() and options['build_agg']:
    build_agg(ext_modules, packages)
    rc['backend'] = 'Agg'
else:
    rc['backend'] = 'SVG'

if options['build_image']:
    build_image(ext_modules, packages)

if options['build_windowing'] and sys.platform=='win32':
   build_windowing(ext_modules, packages)
Example #4
0
if not havesubprocess:
    packages.append('subprocess')
    if sys.platform == 'win32':
        build_subprocess(ext_modules, packages)

if not check_for_freetype():
    sys.exit(1)

build_ft2font(ext_modules, packages)
build_ttconv(ext_modules, packages)
build_contour(ext_modules, packages)
build_nxutils(ext_modules, packages)

build_swigagg(ext_modules, packages)
build_transforms(ext_modules, packages)

print_raw("")
print_raw("OPTIONAL BACKEND DEPENDENCIES")

if check_for_libpng() and options['build_agg']:
    build_agg(ext_modules, packages)
    rc['backend'] = 'Agg'
else:
    rc['backend'] = 'SVG'

if options['build_image']:
    build_image(ext_modules, packages)

if options['build_windowing'] and sys.platform == 'win32':
    build_windowing(ext_modules, packages)