parameters: (
          cls,
          temp_build_dir,           # type: TempDirectory
          options,                  # type: Values
          req_tracker,              # type: RequirementTracker
          session,                  # type: PipSession
          finder,                   # type: PackageFinder
          use_user_site,            # type: bool
          download_dir=None,        # type: str
      )
return_statement: return RequirementPreparer(
              build_dir=temp_build_dir_path,
              src_dir=options.src_dir,
              download_dir=download_dir,
              build_isolation=options.build_isolation,
              req_tracker=req_tracker,
              session=session,
              progress_bar=options.progress_bar,
              finder=finder,
              require_hashes=options.require_hashes,
              use_user_site=use_user_site,
              lazy_wheel=lazy_wheel,
          )
docstring: Create a RequirementPreparer instance for the given parameters.
docstring_summary: Create a RequirementPreparer instance for the given parameters.
docstring_tokens: Create a RequirementPreparer instance for the given parameters .
function: def make_requirement_preparer(
          cls,
          temp_build_dir,           # type: TempDirectory
          options,                  # type: Values
          req_tracker,              # type: RequirementTracker
          session,                  # type: PipSession
          finder,                   # type: PackageFinder
          use_user_site,            # type: bool
          download_dir=None,        # type: str
      ):
          # type: (...) -> RequirementPreparer
          """
          Create a RequirementPreparer instance for the given parameters.
          """
          temp_build_dir_path = temp_build_dir.path
          assert temp_build_dir_path is not None
  
          resolver_variant = cls.determine_resolver_variant(options)
          if resolver_variant == "2020-resolver":
              lazy_wheel = 'fast-deps' in options.features_enabled
              if lazy_wheel:
                  logger.warning(
                      'pip is using lazily downloaded wheels using HTTP '
                      'range requests to obtain dependency information. '
                      'This experimental feature is enabled through '
                      '--use-feature=fast-deps and it is not ready for '
                      'production.'
                  )
          else:
              lazy_wheel = False
              if 'fast-deps' in options.features_enabled:
                  logger.warning(
                      'fast-deps has no effect when used with the legacy resolver.'
                  )
  
          return RequirementPreparer(
              build_dir=temp_build_dir_path,
              src_dir=options.src_dir,
              download_dir=download_dir,
              build_isolation=options.build_isolation,
              req_tracker=req_tracker,
              session=session,
              progress_bar=options.progress_bar,
              finder=finder,
              require_hashes=options.require_hashes,
              use_user_site=use_user_site,
              lazy_wheel=lazy_wheel,
          )
function_tokens: def make_requirement_preparer ( cls , temp_build_dir , # type: TempDirectory options , # type: Values req_tracker , # type: RequirementTracker session , # type: PipSession finder , # type: PackageFinder use_user_site , # type: bool download_dir = None , # type: str ) : # type: (...) -> RequirementPreparer temp_build_dir_path = temp_build_dir . path assert temp_build_dir_path is not None resolver_variant = cls . determine_resolver_variant ( options ) if resolver_variant == "2020-resolver" : lazy_wheel = 'fast-deps' in options . features_enabled if lazy_wheel : logger . warning ( 'pip is using lazily downloaded wheels using HTTP ' 'range requests to obtain dependency information. ' 'This experimental feature is enabled through ' '--use-feature=fast-deps and it is not ready for ' 'production.' ) else : lazy_wheel = False if 'fast-deps' in options . features_enabled : logger . warning ( 'fast-deps has no effect when used with the legacy resolver.' ) return RequirementPreparer ( build_dir = temp_build_dir_path , src_dir = options . src_dir , download_dir = download_dir , build_isolation = options . build_isolation , req_tracker = req_tracker , session = session , progress_bar = options . progress_bar , finder = finder , require_hashes = options . require_hashes , use_user_site = use_user_site , lazy_wheel = lazy_wheel , )