added invoke system dependencies for redhat

This commit is contained in:
Blake Harnden 2020-07-10 11:20:27 -07:00
parent 7821ffb642
commit 9bf5756a03

View file

@ -67,14 +67,19 @@ def install_system(c: Context, os_info: OsInfo, hide: bool) -> None:
if os_info.like == OsLike.DEBIAN:
c.run(
"sudo apt install -y automake pkg-config gcc libev-dev ebtables iproute2 "
"ethtool tk python3-tk", hide=hide
"ethtool tk python3-tk",
hide=hide
)
elif os_info.like == OsLike.REDHAT:
c.run(
"sudo yum install -y automake pkgconf-pkg-config gcc gcc-c++ libev-devel "
"iptables-ebtables iproute python3-devel python3-tkinter tk ethtool",
hide=hide
)
def install_grpcio(c: Context, os_info: OsInfo, hide: bool) -> None:
def install_grpcio(c: Context, hide: bool) -> None:
print("installing grpcio-tools...")
if os_info.like == OsLike.REDHAT:
c.run("sudo yum install -y python3-devel", hide=hide)
c.run("python3 -m pip install --user grpcio-tools", hide=hide)
@ -140,7 +145,7 @@ def install(c, dev=False, verbose=False):
hide = not verbose
os_info = get_os()
install_system(c, os_info, hide)
install_grpcio(c, os_info, hide)
install_grpcio(c, hide)
build(c, hide)
install_core(c, hide)
install_poetry(c, dev, hide)