Skip to content

Commit

Permalink
Ignore --require-virtualenv for check and freeze commands
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent committed Jul 13, 2024
1 parent 3228d76 commit a6cd8e4
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 a6cd8e4

Please sign in to comment.