try pip install fix
This commit is contained in:
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user