def get_versions():
    from distutils.version import StrictVersion
    from distutils.spawn import find_executable
    import re

    gcc_exe = find_executable('gcc')
    if gcc_exe:
        out = os.popen(gcc_exe + ' -dumpversion','r')
        out_string = out.read()
        out.close()
        result = re.search('(\d+\.\d+\.\d+)',out_string)
        if result:
            gcc_version = StrictVersion(result.group(1))
        else:
            gcc_version = None
    else:
        gcc_version = None
    # EMX ld has no way of reporting version number, and we use GCC
    # anyway - so we can link OMF DLLs
    ld_version = None
    return (gcc_version, ld_version)
Read-only reference to collection of |_Row| objects representing the
dataset/ETHPy150Open babble/babble/include/jython/Lib/distutils/emxccompiler.py/get_versions--crossover with--dataset/ETHPy150Open scanny/python-pptx/pptx/shapes/table.py/Table.rows