#NEWLINE# def get_src_requirement( self , dist , location , find_tags ) : #NEWLINE# #INDENT# repo = self . get_url ( location ) #NEWLINE# if ( not repo . lower ( ) . startswith ( 'bzr:' ) ) : #NEWLINE# #INDENT# repo = ( 'bzr+' + repo ) #NEWLINE# #UNINDENT# egg_project_name = dist . egg_name ( ) . split ( '-' , 1 ) [ 0 ] #NEWLINE# if ( not repo ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# current_rev = self . get_revision ( location ) #NEWLINE# tag_revs = self . get_tag_revs ( location ) #NEWLINE# if ( current_rev in tag_revs ) : #NEWLINE# #INDENT# full_egg_name = ( '%s-%s' % ( egg_project_name , tag_revs [ current_rev ] ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# full_egg_name = ( '%s-dev_r%s' % ( dist . egg_name ( ) , current_rev ) ) #NEWLINE# #UNINDENT# return ( '%s@%s#egg=%s' % ( repo , current_rev , full_egg_name ) )