Merge pull request #420 from pre-commit/stdlib_venv_strikes_again

Fix virtualenv-inside-venv on osx.  Resolves #419
This commit is contained in:
Anthony Sottile
2016-10-23 17:00:25 -07:00
committed by GitHub

View File

@@ -71,6 +71,8 @@ def install_environment(
]
if version != 'default':
venv_cmd.extend(['-p', norm_version(version)])
else:
venv_cmd.extend(['-p', os.path.realpath(sys.executable)])
repo_cmd_runner.run(venv_cmd)
with in_env(repo_cmd_runner, version):
helpers.run_setup_cmd(