#NEWLINE# def transform_pip_requirement_set( self , requirement_set ) : #NEWLINE# #INDENT# "\n        Transform pip's requirement set into one that `pip-accel` can work with.\n\n        :param requirement_set: The :class:`pip.req.RequirementSet` object\n                                reported by pip.\n        :returns: A list of :class:`pip_accel.req.Requirement` objects.\n\n        This function converts the :class:`pip.req.RequirementSet` object\n        reported by pip into a list of :class:`pip_accel.req.Requirement`\n        objects.\n        " #NEWLINE# filtered_requirements = [ ] #NEWLINE# for requirement in requirement_set . requirements . values ( ) : #NEWLINE# #INDENT# if requirement . satisfied_by : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if requirement_set . constraint : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# filtered_requirements . append ( requirement ) #NEWLINE# self . reported_requirements . append ( requirement ) #NEWLINE# #UNINDENT# return sorted ( [ Requirement ( self . config , r ) for r in filtered_requirements ] , key = ( lambda r : r . name . lower ( ) ) )