try pip install fix

This commit is contained in:
bilulib
2025-07-21 15:00:34 +02:00
parent afd8faab62
commit 0f5571901f
2 changed files with 26 additions and 6 deletions

View File

@ -63,8 +63,18 @@ $STD uv venv /opt/${APPLICATION}/venv
# Install a compatible version of PyYAML first
$STD uv pip install --python /opt/${APPLICATION}/venv/bin/python "PyYAML>=6.0"
$STD uv pip install --python /opt/${APPLICATION}/venv/bin/python -r /opt/${APPLICATION}/backend/requirements.txt
# Create a temporary requirements file excluding the incompatible PyYAML version
temp_req_file=$(mktemp)
grep -v "^PyYAML" /opt/${APPLICATION}/backend/requirements.txt >"$temp_req_file"
$STD uv pip install --python /opt/${APPLICATION}/venv/bin/python -r "$temp_req_file"
$STD uv pip install --python /opt/${APPLICATION}/venv/bin/python gunicorn
# Store the modified requirements checksum for future updates
md5sum "$temp_req_file" | awk '{print $1}' >/opt/${APPLICATION}/.requirements_checksum
rm -f "$temp_req_file"
msg_ok "Setup ${APPLICATION}"
msg_info "Building Frontend"