mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 02:30:44 -06:00
fix: use prompt in standalone venvs
This commit is contained in:
parent
b08eeb1c71
commit
ae30ff2b84
1 changed files with 4 additions and 4 deletions
|
@ -52,7 +52,7 @@ from typing import (
|
|||
from urllib.error import HTTPError
|
||||
from urllib.request import urlopen
|
||||
|
||||
__version__ = "23.5a7"
|
||||
__version__ = "23.5a7-1-g86f4773-dev"
|
||||
|
||||
|
||||
class Spinner:
|
||||
|
@ -347,7 +347,7 @@ class Template:
|
|||
_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.create(env, symlinks=True, clear=True)
|
||||
venv.create(env, prompt=f"viv-{name}", symlinks=True, clear=True)
|
||||
kw = dict(zip(("stdout", "stderr"), ((None,) * 2 if verbose else (-1, 2))))
|
||||
cmd = ["pip", "--python", str(env / "bin" / "python"), "install", *spec]
|
||||
p = run(cmd, **kw)
|
||||
|
|
Loading…
Reference in a new issue