Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider python specific options via --pip-args #1898

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
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
Loading