calibre-web: use uv sync (native) instead of pip-compatible install
This commit is contained in:
parent
b518881996
commit
2b7eed2630
@ -44,7 +44,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
cd /opt/calibre-web
|
cd /opt/calibre-web
|
||||||
$STD uv pip install --system --no-cache-dir -r requirements.txt
|
$STD uv sync --no-dev
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Restoring Data"
|
msg_info "Restoring Data"
|
||||||
|
|||||||
@ -35,7 +35,7 @@ setup_uv
|
|||||||
|
|
||||||
msg_info "Installing Python Dependencies"
|
msg_info "Installing Python Dependencies"
|
||||||
cd /opt/calibre-web
|
cd /opt/calibre-web
|
||||||
$STD uv pip install --system --no-cache-dir -r requirements.txt
|
$STD uv sync --no-dev
|
||||||
msg_ok "Installed Python Dependencies"
|
msg_ok "Installed Python Dependencies"
|
||||||
|
|
||||||
mkdir -p /opt/calibre-web/data
|
mkdir -p /opt/calibre-web/data
|
||||||
@ -50,7 +50,7 @@ After=network.target
|
|||||||
Type=simple
|
Type=simple
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/opt/calibre-web
|
WorkingDirectory=/opt/calibre-web
|
||||||
ExecStart=/usr/bin/python3 /opt/calibre-web/cps.py
|
ExecStart=/opt/calibre-web/.venv/bin/python /opt/calibre-web/cps.py
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user