#NEWLINE# def is_installable_dir( path ) : #NEWLINE# #INDENT# 'Return True if `path` is a directory containing a setup.py file.' #NEWLINE# if ( not os . path . isdir ( path ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# setup_py = os . path . join ( path , 'setup.py' ) #NEWLINE# if os . path . isfile ( path ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return False