install: use sudo when installing wheel for non-user specific install

This commit is contained in:
Blake Harnden 2020-09-11 15:16:28 -07:00
parent 0668d0a49b
commit f83f71c074

View file

@ -176,7 +176,7 @@ def install_poetry(c: Context, dev: bool, local: bool, hide: bool) -> None:
if local: if local:
with c.cd(DAEMON_DIR): with c.cd(DAEMON_DIR):
c.run("poetry build -f wheel", hide=hide) c.run("poetry build -f wheel", hide=hide)
c.run("python3 -m pip install dist/*") c.run("sudo python3 -m pip install dist/*")
else: else:
args = "" if dev else "--no-dev" args = "" if dev else "--no-dev"
with c.cd(DAEMON_DIR): with c.cd(DAEMON_DIR):