mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Create Python virtual environments with --system-site-packages
This commit is contained in:
parent
2bffc0ad85
commit
aabe508eea
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ def install_environment(
|
|||
additional_dependencies: Sequence[str],
|
||||
) -> None:
|
||||
envdir = lang_base.environment_dir(prefix, ENVIRONMENT_DIR, version)
|
||||
venv_cmd = [sys.executable, '-mvirtualenv', envdir]
|
||||
venv_cmd = [sys.executable, '-mvirtualenv', envdir, '--system-site-packages']
|
||||
python = norm_version(version)
|
||||
if python is not None:
|
||||
venv_cmd.extend(('-p', python))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue