def _valid_gnu_version(user_io):
    version_gcc = finders.gnu_version('gcc')
    if version_gcc:
        user_io.out.writeln('gcc %s already installed' % version_gcc, front=Color.GREEN)
    version_gpp = finders.gnu_version('g++')
    if version_gpp:
        user_io.out.writeln('g++ %s already installed' % version_gpp, front=Color.GREEN)
    if version_gcc and version_gpp:
        return True
    return False
dataset/ETHPy150Open biicode/client/setups/installers/gnu_compiler_installer.py/_valid_gnu_version/original