mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 10:40:44 -06:00
refactor: remove more redundant calls
This commit is contained in:
parent
0136568137
commit
44c8beac51
1 changed files with 1 additions and 4 deletions
|
@ -52,7 +52,7 @@ from typing import (
|
||||||
Union,
|
Union,
|
||||||
)
|
)
|
||||||
|
|
||||||
__version__ = "23.8b2-13-g1f0eed9-dev"
|
__version__ = "23.8b2-13-g0136568-dev"
|
||||||
|
|
||||||
|
|
||||||
class Spinner:
|
class Spinner:
|
||||||
|
@ -1813,7 +1813,6 @@ class Viv:
|
||||||
vivenv = ViVenv(spec + deps)
|
vivenv = ViVenv(spec + deps)
|
||||||
with vivenv.use(keep=keep):
|
with vivenv.use(keep=keep):
|
||||||
vivenv.ensure()
|
vivenv.ensure()
|
||||||
vivenv.touch()
|
|
||||||
vivenv.meta.write()
|
vivenv.meta.write()
|
||||||
subprocess_run_quit(
|
subprocess_run_quit(
|
||||||
[vivenv.python, "-S", scriptpath, *rest],
|
[vivenv.python, "-S", scriptpath, *rest],
|
||||||
|
@ -1852,9 +1851,7 @@ class Viv:
|
||||||
vivenv = ViVenv(spec)
|
vivenv = ViVenv(spec)
|
||||||
|
|
||||||
with vivenv.use(keep=keep):
|
with vivenv.use(keep=keep):
|
||||||
# TODO: refactor this logic elsewhere
|
|
||||||
if keep or Env().viv_run_mode != "ephemeral":
|
if keep or Env().viv_run_mode != "ephemeral":
|
||||||
vivenv.touch()
|
|
||||||
vivenv.meta.write(vivenv.path / "vivmeta.json")
|
vivenv.meta.write(vivenv.path / "vivmeta.json")
|
||||||
|
|
||||||
vivenv.bin_exists(bin)
|
vivenv.bin_exists(bin)
|
||||||
|
|
Loading…
Reference in a new issue