Merge pull request 'Added libyaml-dev and python3-dev to the dependencies for building PyYAML' (#12) from profilarr-script into dev

Reviewed-on: #12
This commit is contained in:
2025-07-21 14:51:27 +02:00

View File

@ -18,7 +18,9 @@ APPLICATION="profilarr"
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y \ $STD apt-get install -y \
unzip \ unzip \
build-essential build-essential \
libyaml-dev \
python3-dev
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Python" msg_info "Installing Python"
@ -58,6 +60,9 @@ $STD mv "${EXTRACTED_DIR}/backend" /opt/${APPLICATION}/
$STD mv "${EXTRACTED_DIR}/frontend" /opt/${APPLICATION}/ $STD mv "${EXTRACTED_DIR}/frontend" /opt/${APPLICATION}/
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
$STD uv venv /opt/${APPLICATION}/venv $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 $STD uv pip install --python /opt/${APPLICATION}/venv/bin/python -r /opt/${APPLICATION}/backend/requirements.txt
$STD uv pip install --python /opt/${APPLICATION}/venv/bin/python gunicorn $STD uv pip install --python /opt/${APPLICATION}/venv/bin/python gunicorn
msg_ok "Setup ${APPLICATION}" msg_ok "Setup ${APPLICATION}"