parameters: (install_req)
return_statement: return SourceDistribution(install_req)
docstring: Returns a Distribution for the given InstallRequirement
docstring_summary: Returns a Distribution for the given InstallRequirement
docstring_tokens: Returns a Distribution for the given InstallRequirement
function: def make_distribution_for_install_requirement(install_req):
  
      # type: (InstallRequirement) -> AbstractDistribution
  
      """Returns a Distribution for the given InstallRequirement
  
      """
  
      # Editable requirements will always be source distributions. They use the
  
      # legacy logic until we create a modern standard for them.
  
      if install_req.editable:
  
          return SourceDistribution(install_req)
  
  
  
      # If it's a wheel, it's a WheelDistribution
  
      if install_req.is_wheel:
  
          return WheelDistribution(install_req)
  
  
  
      # Otherwise, a SourceDistribution
  
      return SourceDistribution(install_req)
function_tokens: def make_distribution_for_install_requirement ( install_req ) : # type: (InstallRequirement) -> AbstractDistribution # Editable requirements will always be source distributions. They use the # legacy logic until we create a modern standard for them. if install_req . editable : return SourceDistribution ( install_req ) # If it's a wheel, it's a WheelDistribution if install_req . is_wheel : return WheelDistribution ( install_req ) # Otherwise, a SourceDistribution return SourceDistribution ( install_req )