Unconditionally create venv and install deps
Remove the conditional retry logic and always run the venv creation, pip install of calibreweb, and uv sync without build isolation. Updated ct/calibre-web.sh and install/calibre-web-install.sh to: run `$STD uv venv`, `$STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir calibreweb`, then `$STD uv sync --no-dev --no-build-isolation`. This simplifies the dependency installation flow and ensures the virtualenv and package are installed before syncing.
This commit is contained in:
parent
ac04d4f887
commit
a12bfd9ab3
@ -43,12 +43,9 @@ function update_script() {
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
cd /opt/calibre-web
|
||||
if ! $STD uv sync --no-dev; then
|
||||
msg_info "Retrying dependency install without build isolation"
|
||||
$STD uv venv
|
||||
$STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir calibreweb
|
||||
$STD uv sync --no-dev --no-build-isolation
|
||||
fi
|
||||
$STD uv venv
|
||||
$STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir calibreweb
|
||||
$STD uv sync --no-dev --no-build-isolation
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
msg_info "Restoring Data"
|
||||
|
||||
@ -32,12 +32,9 @@ setup_uv
|
||||
|
||||
msg_info "Installing Python Dependencies"
|
||||
cd /opt/calibre-web
|
||||
if ! $STD uv sync --no-dev; then
|
||||
msg_info "Retrying Python dependency install without build isolation"
|
||||
$STD uv venv
|
||||
$STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir calibreweb
|
||||
$STD uv sync --no-dev --no-build-isolation
|
||||
fi
|
||||
$STD uv venv
|
||||
$STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir calibreweb
|
||||
$STD uv sync --no-dev --no-build-isolation
|
||||
msg_ok "Installed Python Dependencies"
|
||||
|
||||
msg_info "Creating Service"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user