add '--isolated' to pip install to avoid authentication to private PyPI

Solves https://github.com/pre-commit/pre-commit/issues/1454
This commit is contained in:
Bas Nijholt 2020-10-02 13:43:21 +02:00 committed by GitHub
parent 202f0bbbc9
commit 5adc7edc4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -196,7 +196,7 @@ def install_environment(
python = norm_version(version) python = norm_version(version)
if python is not None: if python is not None:
venv_cmd.extend(('-p', python)) venv_cmd.extend(('-p', python))
install_cmd = ('python', '-mpip', 'install', '.', *additional_dependencies) install_cmd = ('python', '-mpip', 'install', '--isolated', '.', *additional_dependencies)
with clean_path_on_failure(envdir): with clean_path_on_failure(envdir):
cmd_output_b(*venv_cmd, cwd='/') cmd_output_b(*venv_cmd, cwd='/')