def pip(filename):
requirements = []<EOL>for line in open(os.path.join('<STR_LIT>', filename)).readlines():<EOL><INDENT>match = RE_REQUIREMENT.match(line)<EOL>if match:<EOL><INDENT>requirements.extend(pip(match.group('<STR_LIT:filename>')))<EOL><DEDENT>else:<EOL><INDENT>requirements.append(line)<EOL><DEDENT><DEDENT>return requirements<EOL>
Parse pip requirement file and transform it to setuptools requirements