some fixes with venv

This commit is contained in:
CanbiZ
2025-06-04 13:06:17 +02:00
parent 68b4ff652a
commit 88cae8982f
8 changed files with 8 additions and 10 deletions

View File

@ -21,6 +21,7 @@ curl -fsSL "https://github.com/morpheus65535/bazarr/releases/latest/download/baz
$STD unzip bazarr -d /opt/bazarr
chmod 775 /opt/bazarr /var/lib/bazarr/
cd /opt/bazarr
$STD uv venv /opt/bazarr/.venv
$STD /opt/bazarr/.venv/bin/uv pip install -r requirements.txt
msg_ok "Installed Bazarr"

View File

@ -31,8 +31,8 @@ msg_info "Installing Calibre-Web"
mkdir -p /opt/calibre-web
$STD curl -fsSL https://github.com/janeczku/calibre-web/raw/master/library/metadata.db -o /opt/calibre-web/metadata.db
cd /opt/calibre-web
$STD uv venv .venv
$STD .venv/bin/uv pip install calibreweb jsonschema
$STD uv venv /opt/calibre-web/.venv
$STD /opt/calibre-web/.venv/bin/uv pip install calibreweb jsonschema
msg_ok "Installed Calibre-Web"
msg_info "Creating Service"

View File

@ -49,7 +49,7 @@ NODE_VERSION="22" install_node_and_modules
msg_info "Installing Change Detection"
mkdir -p /opt/changedetection
cd /opt/changedetection
$STD uv venv .venv
$STD uv venv /opt/changedetection/.venv
$STD /opt/changedetection/.venv/bin/uv pip install changedetection.io
msg_ok "Installed Change Detection"

View File

@ -23,6 +23,8 @@ $STD apt-get install -y \
software-properties-common
msg_ok "Installed Dependencies"
PYTHON_VERSION="3.12" setup_uv
msg_info "Setting up TemurinJDK"
mkdir -p /etc/apt/keyrings
curl -fsSL "https://packages.adoptium.net/artifactory/api/gpg/key/public" | tee /etc/apt/keyrings/adoptium.asc
@ -32,8 +34,6 @@ $STD apt-get install -y temurin-{8,11,17,21}-jre
sudo update-alternatives --set java /usr/lib/jvm/temurin-21-jre-amd64/bin/java
msg_ok "Installed TemurinJDK"
PYTHON_VERSION="3.12" setup_uv
msg_info "Installing Craty-Controller (Patience)"
useradd crafty -m -s /bin/bash
cd /opt
@ -46,7 +46,7 @@ cp -a crafty-4-v${RELEASE}/. /opt/crafty-controller/crafty/crafty-4/
rm -rf crafty-4-v${RELEASE}
cd /opt/crafty-controller/crafty
$STD uv venv .venv
$STD uv venv /opt/crafty-controller/crafty/.venv
chown -R crafty:crafty /opt/crafty-controller/
$STD sudo -u crafty bash -c '
source /opt/crafty-controller/crafty/.venv/bin/activate

View File

@ -22,7 +22,6 @@ PYTHON_VERSION="3.12" setup_uv
msg_info "Installing Deluge"
mkdir -p /opt/deluge
$STD uv venv /opt/deluge/.venv
source /opt/deluge/.venv/bin/activate
$STD /opt/deluge/.venv/bin/uv pip install deluge[all]
msg_ok "Installed Deluge"

View File

@ -55,7 +55,6 @@ $STD unzip v${RELEASE}.zip
mv documenso-${RELEASE} /opt/documenso
cd /opt/documenso
$STD uv venv /opt/documenso/.venv
source /opt/documenso/.venv/bin/activate
$STD /opt/documenso/.venv/bin/uv pip install bcrypt
mv .env.example /opt/documenso/.env
sed -i \

View File

@ -22,7 +22,6 @@ PYTHON_VERSION="3.12" setup_uv
msg_info "Setting up Virtual Environment"
mkdir -p /opt/esphome
$STD uv venv /opt/esphome/.venv
source /opt/esphome/.venv/bin/activate
$STD /opt/esphome/.venv/bin/uv pip install esphome tornado esptool
msg_ok "Setup and Installed ESPHome"

View File

@ -1103,7 +1103,7 @@ function setup_uv() {
msg_error "Failed to install Python $VERSION_MATCH via uv"
return 1
fi
msg_ok "Installed Python $VERSION_MATCH via uv"
msg_ok "Installed Python $VERSION_MATCH"
fi
fi
}