Skip to content

Commit

Permalink
Merge pull request #12842 from branchvincent/require-virtualenv
Browse files Browse the repository at this point in the history
Ignore `--require-virtualenv` for `check` and `freeze` commands
  • Loading branch information
pradyunsg committed Jul 13, 2024
2 parents 58aacf0 + a6cd8e4 commit c2d706f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/12842.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ignore ``--require-virtualenv`` for ``pip check`` and ``pip freeze``
1 change: 1 addition & 0 deletions src/pip/_internal/commands/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
class CheckCommand(Command):
"""Verify installed packages have compatible dependencies."""

ignore_require_venv = True
usage = """
%prog [options]"""

Expand Down
1 change: 1 addition & 0 deletions src/pip/_internal/commands/freeze.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class FreezeCommand(Command):
packages are listed in a case-insensitive sorted order.
"""

ignore_require_venv = True
usage = """
%prog [options]"""
log_streams = ("ext://sys.stderr", "ext://sys.stderr")
Expand Down

0 comments on commit c2d706f

Please sign in to comment.