Example #1
0
def work():
    if sys.version_info[0] == 3:
        if sys.version_info[1] < 4:
            fatal("Need python version 3.4 or later.")
    else:
        fatal("Need python version 3.4 or later.")

    try:
        find_mbuild_import()
    except:
        fatal("mbuild import failed")
    import xed_mbuild
    import xed_build_common
    if 0:
        retval = xed_mbuild.execute()
    else:
        try:
            retval = xed_mbuild.execute()
        except Exception as e:
            xed_build_common.handle_exception_and_die(e)
    return retval
Example #2
0
def work():
    if sys.version_info[0] >= 3:
        fatal("Python version 3.x not supported.")
    if sys.version_info[0] == 2 and sys.version_info[1] < 7:        
        fatal("Need python version 2.7 or later.")
    try:
        find_mbuild_import()
    except:
        fatal("mbuild import failed")
    import xed_mbuild
    import xed_build_common
    try:
        retval = xed_mbuild.execute()
    except Exception, e:
        xed_build_common.handle_exception_and_die(e)
Example #3
0
def work():
    if sys.version_info[0] == 3 and sys.version_info[1] < 4:        
        fatal("Need python version 3.4 or later.")
    if sys.version_info[0] == 2:
        if (sys.version_info[1] < 7 or (sys.version_info[1] == 7 and
                                        sys.version_info[2] < 5)):
            fatal("Need python version 2.7.5 or later.")
    try:
        find_mbuild_import()
    except:
        fatal("mbuild import failed")
    import xed_mbuild
    import xed_build_common
    try:
        retval = xed_mbuild.execute()
    except Exception as e:
        xed_build_common.handle_exception_and_die(e)
    return retval