install: fixed deprecated syntax when using poetry to install only the main packages

This commit is contained in:
Blake Harnden 2023-02-27 11:08:51 -08:00
parent 3e5c8c894f
commit b92e4ed6b9

View file

@ -216,7 +216,7 @@ def install_poetry(c: Context, dev: bool, local: bool, hide: bool) -> None:
c.run("poetry build -f wheel", hide=hide)
c.run(f"sudo {python_bin} -m pip install dist/*")
else:
args = "" if dev else "--no-dev"
args = "" if dev else "--only main"
with c.cd(DAEMON_DIR):
c.run("sudo mkdir -p /opt/core", hide=hide)
c.run(f"sudo {python_bin} -m venv {VENV_PATH}")