def is_installable_dir(path):<EOL>
if not os.path.isdir(path):<EOL><INDENT>return False<EOL><DEDENT>setup_py = os.path.join(path, '<STR_LIT>')<EOL>if os.path.isfile(setup_py):<EOL><INDENT>return True<EOL><DEDENT>pyproject_toml = os.path.join(path, '<STR_LIT>')<EOL>if os.path.isfile(pyproject_toml):<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
Is path is a directory containing setup.py or pyproject.toml?