simplified invoke install/uninstall task, since daemon no longer formally installs
This commit is contained in:
parent
80194b3e38
commit
be2f7e1cae
2 changed files with 3 additions and 14 deletions
|
@ -43,7 +43,6 @@ line_length = 88
|
|||
line_length = 88
|
||||
exclude = ".+_pb2.*.py|doc/|build/|__pycache__/"
|
||||
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry>=0.12"]
|
||||
build-backend = "poetry.masonry.api"
|
||||
|
|
12
tasks.py
12
tasks.py
|
@ -8,8 +8,6 @@ from tempfile import NamedTemporaryFile
|
|||
from invoke import task, Context
|
||||
|
||||
DAEMON_DIR: str = "daemon"
|
||||
VCMD_DIR: str = "netns"
|
||||
GUI_DIR: str = "gui"
|
||||
DEFAULT_PREFIX: str = "/usr/local"
|
||||
|
||||
|
||||
|
@ -121,10 +119,6 @@ def build(c: Context, hide: bool, prefix: str = DEFAULT_PREFIX) -> None:
|
|||
|
||||
def install_core(c: Context, hide: bool) -> None:
|
||||
print("installing core vcmd...")
|
||||
with c.cd(VCMD_DIR):
|
||||
c.run("sudo make install", hide=hide)
|
||||
print("installing core gui...")
|
||||
with c.cd(GUI_DIR):
|
||||
c.run("sudo make install", hide=hide)
|
||||
|
||||
|
||||
|
@ -265,11 +259,7 @@ def uninstall(c, dev=False, verbose=False, prefix=DEFAULT_PREFIX):
|
|||
uninstall core
|
||||
"""
|
||||
hide = not verbose
|
||||
print("uninstalling core-gui")
|
||||
with c.cd(GUI_DIR):
|
||||
c.run("sudo make uninstall", hide=hide)
|
||||
print("uninstalling vcmd")
|
||||
with c.cd(VCMD_DIR):
|
||||
print("uninstalling core")
|
||||
c.run("sudo make uninstall", hide=hide)
|
||||
print("cleaning build directory")
|
||||
c.run("make clean", hide=hide)
|
||||
|
|
Loading…
Reference in a new issue