Skip to content

Commit

Permalink
Remove no longer used method which_pip
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Aug 27, 2022
1 parent adb1a6c commit 438c344
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions pipenv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1764,26 +1764,6 @@ def fallback_which(command, location=None, allow_global=False, system=False):
return ""


def which_pip(project):
"""Prefers to utilize the vendor'd version of pip, falls back to the location of virtualenv-installed pip."""

location = None
if "VIRTUAL_ENV" in os.environ:
location = os.environ["VIRTUAL_ENV"]

pip = project._which("python", location=location)
if pip:
return pip
if not pip:
for p in ("pip", "pip3", "pip2"):
where = system_which(p)
if where:
return where

pip = fallback_which("pip", allow_global=True, location=location)
return pip


def format_help(help):
"""Formats the help string."""
help = help.replace("Options:", str(click.style("Options:", bold=True)))
Expand Down

0 comments on commit 438c344

Please sign in to comment.