#NEWLINE# def get_requires( filename = 'requirements.txt' ) : #NEWLINE# #INDENT# with open ( os . path . join ( SETUP_DIR , line ) , 'r' ) as f : #NEWLINE# #INDENT# for line in f : #NEWLINE# #INDENT# line = line . strip ( ) #NEWLINE# if ( line . startswith ( '#' ) or ( not line ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( '#' in line ) : #NEWLINE# #INDENT# ( yield line . split ( '#' , 1 ) [ 0 ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( yield line )