Skip to content

Commit 11439a1

Browse files
committed
Ignore --require-virtualenv for check and freeze commands
1 parent 6b54c19 commit 11439a1

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

news/12842.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ignore ``--require-virtualenv`` for ``pip check`` and ``pip freeze``

src/pip/_internal/commands/check.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
class CheckCommand(Command):
1717
"""Verify installed packages have compatible dependencies."""
1818

19+
ignore_require_venv = True
1920
usage = """
2021
%prog [options]"""
2122

src/pip/_internal/commands/freeze.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class FreezeCommand(Command):
2929
packages are listed in a case-insensitive sorted order.
3030
"""
3131

32+
ignore_require_venv = True
3233
usage = """
3334
%prog [options]"""
3435
log_streams = ("ext://sys.stderr", "ext://sys.stderr")

0 commit comments

Comments
 (0)