def get_cython_version():
    """
    Returns:
        Version as a pair of ints (major, minor)

    Raises:
        ImportError: Can't load cython or find version
    """
    import Cython.Compiler.Main
    match = re.search('^([0-9]+)\.([0-9]+)',
                      Cython.Compiler.Main.Version.version)
    try:
        return map(int, match.groups())
    except __HOLE__:
        raise ImportError

# Only use Cython if it is available, else just use the pre-generated files
dataset/ETHPy150Open sightmachine/SimpleCV/scripts/install/win/OpenKinect/freenect-examples/setup.py/get_cython_version