From 56b96984673c795fe229bb6dc927d07f50f68b2f Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Fri, 2 Jun 2023 08:43:08 -0500 Subject: [PATCH] docs: update black example shim --- examples/black | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/black b/examples/black index 7073226..31997c8 100755 --- a/examples/black +++ b/examples/black @@ -18,7 +18,7 @@ def _viv_use(*pkgs, track_exe=False, name=""): _id = sha256.hexdigest() if (env := cache / (name if name else _id)) not in cache.glob("*/") or force: sys.stderr.write(f"generating new vivenv -> {env.name}\n") - venv.EnvBuilder(with_pip=True, clear=True).create(env) + venv.create(env, symlinks=True, with_pip=True, clear=True).create(env) (env / "pip.conf").write_text("[global]\ndisable-pip-version-check=true") run_kw = dict(zip(("stdout", "stderr"), ((None,) * 2 if verbose else (-1, 2)))) p = run([env / "bin" / "pip", "install", "--force-reinstall", *spec], **run_kw)