Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion piptools/repositories/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

from click import progressbar
from pip._internal.cache import WheelCache
from pip._internal.cli.cmdoptions import make_target_python
from pip._internal.commands import create_command
from pip._internal.commands.install import InstallCommand
from pip._internal.index.package_finder import PackageFinder
Expand Down Expand Up @@ -74,8 +75,9 @@ def __init__(self, pip_args: list[str], cache_dir: str):

self._options: optparse.Values = options
self._session = self.command._build_session(options)
target_python = make_target_python(options)
self._finder = self.command._build_package_finder(
options=options, session=self.session
options=options, session=self.session, target_python=target_python
)

# Caches
Expand Down