Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: run pip with --isolated to avoid bad local config #6531

Merged
merged 1 commit into from Sep 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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