mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 09:04:41 +04:00
Fix virtualenv-inside-venv on osx. Resolves #419
This commit is contained in:
parent
bbf1f62ed6
commit
d5ebea31d7
1 changed files with 2 additions and 0 deletions
|
|
@ -71,6 +71,8 @@ def install_environment(
|
||||||
]
|
]
|
||||||
if version != 'default':
|
if version != 'default':
|
||||||
venv_cmd.extend(['-p', norm_version(version)])
|
venv_cmd.extend(['-p', norm_version(version)])
|
||||||
|
else:
|
||||||
|
venv_cmd.extend(['-p', os.path.realpath(sys.executable)])
|
||||||
repo_cmd_runner.run(venv_cmd)
|
repo_cmd_runner.run(venv_cmd)
|
||||||
with in_env(repo_cmd_runner, version):
|
with in_env(repo_cmd_runner, version):
|
||||||
helpers.run_setup_cmd(
|
helpers.run_setup_cmd(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue