mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Allow virtualenv creation with strange setup.cfg. Resolves #425
This commit is contained in:
parent
4f73a74378
commit
5ace43765b
2 changed files with 15 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ 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)
|
||||
repo_cmd_runner.run(venv_cmd, cwd='/')
|
||||
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