Skip to content

Commit

Permalink
fix: run pip with --isolated to avoid bad local config (#6531)
Browse files Browse the repository at this point in the history
Resolves: #6521
  • Loading branch information
neersighted committed Sep 15, 2022
1 parent cc3f994 commit 1242fac
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/poetry/utils/pip.py
Expand Up @@ -25,7 +25,13 @@ def pip_install(
# either the virtual environment or the virtualenv package embedded wheel. Version
# checks are a wasteful network call that adds a lot of wait time when installing a
# lot of packages.
args = ["install", "--disable-pip-version-check", "--prefix", str(environment.path)]
args = [
"install",
"--disable-pip-version-check",
"--isolated",
"--prefix",
str(environment.path),
]

if not is_wheel and not editable:
args.insert(1, "--use-pep517")
Expand Down

0 comments on commit 1242fac

Please sign in to comment.