def root_is_purelib(name, wheeldir):<EOL>
name_folded = name.replace("<STR_LIT:->", "<STR_LIT:_>")<EOL>for item in os.listdir(wheeldir):<EOL><INDENT>match = dist_info_re.match(item)<EOL>if match and match.group('<STR_LIT:name>') == name_folded:<EOL><INDENT>with open(os.path.join(wheeldir, item, '<STR_LIT>')) as wheel:<EOL><INDENT>for line in wheel:<EOL><INDENT>line = line.lower().rstrip()<EOL>if line == "<STR_LIT>":<EOL><INDENT>return True<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>return False<EOL>
Return True if the extracted wheel in wheeldir should go into purelib.