Skip to content

Commit c2d706f

Browse files
authored
Merge pull request #12842 from branchvincent/require-virtualenv
Ignore `--require-virtualenv` for `check` and `freeze` commands
2 parents 58aacf0 + a6cd8e4 commit c2d706f

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

news/12842.feature.rst

+1
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

+1
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

+1
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)