fix: activate venv before uv pip install

uv pip needs the venv to be activated (VIRTUAL_ENV set) to find it.
Setting VIRTUAL_ENV and PATH ensures uv can locate the venv.
This commit is contained in:
Michael Joshua Saul
2026-02-27 01:45:48 -07:00
parent 394b8dac26
commit 4abe05bbd9
3 changed files with 626 additions and 0 deletions

View File

@@ -100,6 +100,8 @@ msg_ok "Built Frontend Apps"
msg_info "Setting up Python API"
setup_uv
$STD uv venv /opt/plane-venv
export VIRTUAL_ENV=/opt/plane-venv
export PATH="/opt/plane-venv/bin:$PATH"
$STD uv pip install -r /opt/plane/apps/api/requirements/production.txt
msg_ok "Set up Python API"