piptools._internal._pip_api.command_methods module¶
Interfaces for interacting with methods on RequirementCommand and other pip-defined
command types.
Because these classes change over time, pip-tools needs functional interfaces which wrap methods, making their usage compatible across versions.
- piptools._internal._pip_api.command_methods.make_requirement_preparer_from_command(command: RequirementCommand, /, *, temp_build_dir: TempDirectory, options: Values, build_tracker: BuildTracker, session: PipSession, finder: PackageFinder, download_dir: str | None = None) RequirementPreparer¶
Wrap
RequirementCommand.make_requirement_preparer()to be compatible across pip versions. Also pre-fill values which are fixed constants within pip-tools.