def install_gnu_arm(user_io):
    if not OSInfo.is_linux():
        raise ClientException("ARM Cross compile only works on Linux")

    install_linux_x32_compatibility(user_io)
    c_path, cpp_path = find_gnu_arm()
    if c_path is None or cpp_path is None:
        url = S3_URL + "raspberry_cross_compilers.tgz"
        filename = download(url, url.split("/")[-1])
        user_io.out.info("Unzipping arm gnu SDK")
        install_path = get_biicode_env_folder_path()
        if not os.path.exists(install_path):
            os.mkdir(install_path)
        decompress(filename, install_path)
        user_io.out.success('Installed GNU ARM compilers for RPI')
        # Try to find again
        c_path, cpp_path = find_gnu_arm()
    else:
        user_io.out.writeln('The arm gnu is already downloaded', front=Color.GREEN)
    return c_path, cpp_path
dataset/ETHPy150Open biicode/client/setups/rpi_cross_compiler.py/install_gnu_arm/original