diff --git a/install/tautulli-install.sh b/install/tautulli-install.sh index 63734ddd3..9723018b5 100644 --- a/install/tautulli-install.sh +++ b/install/tautulli-install.sh @@ -15,22 +15,16 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y git -$STD apt-get install -y pip msg_ok "Installed Dependencies" -msg_info "Setup Python3" -$STD apt-get install -y \ - python3 \ - python3-dev \ - python3-pip -rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED -msg_ok "Setup Python3" +PYTHON_VERSION="3.12" setup_uv msg_info "Installing Tautulli" cd /opt $STD git clone https://github.com/Tautulli/Tautulli.git -$STD pip install -q -r /opt/Tautulli/requirements.txt -$STD pip install pyopenssl +$STD uv venv /opt/Tautulli/venv +$STD /opt/Tautulli/venv/bin/uv pip install -r /opt/Tautulli/requirements.txt +$STD /opt/Tautulli/venv/bin/uv pip install pyopenssl msg_ok "Installed Tautulli" msg_info "Creating Service" @@ -44,7 +38,7 @@ WorkingDirectory=/opt/Tautulli/ Restart=on-failure RestartSec=5 Type=simple -ExecStart=/usr/bin/python3 /opt/Tautulli/Tautulli.py +ExecStart=/opt/Tautulli/venv/bin/python /opt/Tautulli/Tautulli.py KillSignal=SIGINT TimeoutStopSec=20 SyslogIdentifier=tautulli diff --git a/install/tianji-install.sh b/install/tianji-install.sh index 56d079a38..af2c02d4c 100644 --- a/install/tianji-install.sh +++ b/install/tianji-install.sh @@ -16,7 +16,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - python3 \ cmake \ g++ \ build-essential \ diff --git a/install/unmanic-install.sh b/install/unmanic-install.sh index 48d5da7d5..90152be2a 100644 --- a/install/unmanic-install.sh +++ b/install/unmanic-install.sh @@ -15,9 +15,10 @@ update_os msg_info "Installing Dependencies (Patience)" $STD apt-get install -y ffmpeg -$STD apt-get install -y python3-pip msg_ok "Installed Dependencies" +PYTHON_VERSION="3.12" setup_uv + if [[ "$CTTYPE" == "0" ]]; then msg_info "Setting Up Hardware Acceleration" $STD apt-get -y install \ @@ -33,7 +34,8 @@ if [[ "$CTTYPE" == "0" ]]; then fi msg_info "Installing Unmanic" -$STD pip3 install unmanic +uv venv /opt/unmanic/venv +/opt/unmanic/venv/bin/uv pip install unmanic sed -i -e 's/^sgx:x:104:$/render:x:104:root/' -e 's/^render:x:106:root$/sgx:x:106:/' /etc/group msg_ok "Installed Unmanic" @@ -47,7 +49,7 @@ StartLimitBurst=3 [Service] Type=simple -ExecStart=/usr/local/bin/unmanic +ExecStart=/opt/unmanic/venv/bin/unmanic Restart=always RestartSec=30 diff --git a/install/web-check-install.sh b/install/web-check-install.sh index 3556c381f..c6434e571 100644 --- a/install/web-check-install.sh +++ b/install/web-check-install.sh @@ -35,8 +35,7 @@ $STD apt-get -y install --no-install-recommends \ x11-apps msg_ok "Installed Dependencies" -setup_uv -$STD uv python install +PYTHON_VERSION="3.12" setup_uv NODE_VERSION="22" NODE_MODULE="yarn@latest" install_node_and_modules msg_info "Installing Chromium" diff --git a/install/wger-install.sh b/install/wger-install.sh index 78e66215d..6686c6e53 100644 --- a/install/wger-install.sh +++ b/install/wger-install.sh @@ -39,13 +39,13 @@ tar xzf $RELEASE.tar.gz mv wger-$RELEASE /home/wger/src cd /home/wger/src $STD uv venv /home/wger/.venv -$STD uv pip install -r requirements_prod.txt --python=/home/wger/.venv -$STD uv pip install -e . --python=/home/wger/.venv -$STD wger create-settings --database-path /home/wger/db/database.sqlite +$STD /home/wger/.venv/bin/uv pip install -r requirements_prod.txt +$STD /home/wger/.venv/bin/uv pip install -e . +$STD /home/wger/.venv/bin/wger create-settings --database-path /home/wger/db/database.sqlite sed -i "s#home/wger/src/media#home/wger/media#g" /home/wger/src/settings.py sed -i "/MEDIA_ROOT = '\/home\/wger\/media'/a STATIC_ROOT = '/home/wger/static'" /home/wger/src/settings.py -$STD wger bootstrap -$STD uv python3 manage.py collectstatic +$STD /home/wger/.venv/bin/wger bootstrap +$STD /home/wger/.venv/bin/uv run python manage.py collectstatic echo "${RELEASE}" >/opt/wger_version.txt msg_ok "Finished setting up wger" @@ -89,7 +89,7 @@ After=network.target [Service] Type=simple User=root -ExecStart=/usr/local/bin/wger start -a 0.0.0.0 -p 3000 +ExecStart=/home/wger/.venv/bin/wger start -a 0.0.0.0 -p 3000 Restart=always [Install]