#NEWLINE# def _do_parse( root , parse ) : #NEWLINE# #INDENT# pretended = os . environ . get ( PRETEND_KEY ) #NEWLINE# if pretended : #NEWLINE# #INDENT# return root #NEWLINE# #UNINDENT# if parse : #NEWLINE# #INDENT# version = ( parse ( root ) or _version_from_entrypoint ( root , 'setuptools_scm.parse_scm_fallback' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# version = version_from_scm ( root ) #NEWLINE# #UNINDENT# if version : #NEWLINE# #INDENT# return version #NEWLINE# #UNINDENT# raise LookupError ( ( "setuptools-scm was unable to detect version for %r.\n\nMake sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.\n\nFor example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj" % root ) )