def METHOD_NAME(extra_include_dirs):
    inc_dirs = [f'--extra-include-dirs={x}' for x in extra_include_dirs]
    cmd = SETUP_CMD + ['--prefix', METHOD_NAME.prefix] + inc_dirs + ['build-frozen-launcher']
    if run(*cmd, cwd=METHOD_NAME.writeable_src_dir) != 0:
        print('Building of frozen kitty launcher failed', file=sys.stderr)
        os.chdir(KITTY_DIR)
        run_shell()
        raise SystemExit('Building of kitty launcher failed')
    return METHOD_NAME.writeable_src_dir