mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Use VIRTUALENV_NO_DOWNLOAD in pre-commit
This commit is contained in:
parent
cb71ea09ff
commit
a1e3a0a131
1 changed files with 2 additions and 1 deletions
|
|
@ -72,7 +72,8 @@ def install_environment(
|
|||
venv_cmd.extend(['-p', norm_version(version)])
|
||||
else:
|
||||
venv_cmd.extend(['-p', os.path.realpath(sys.executable)])
|
||||
repo_cmd_runner.run(venv_cmd, cwd='/')
|
||||
venv_env = dict(os.environ, VIRTUALENV_NO_DOWNLOAD='1')
|
||||
repo_cmd_runner.run(venv_cmd, cwd='/', env=venv_env)
|
||||
with in_env(repo_cmd_runner, version):
|
||||
helpers.run_setup_cmd(
|
||||
repo_cmd_runner,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue