blob: 0833a596faf98a2d173d1adab0b878311d0da2e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
BACKEND=/usr/lib/shrimp/backend
VENV=$BACKEND/.venv
post_install() {
echo "==> Installing SHRIMP Python dependencies..."
rm -rf "$VENV"
python3 -m venv --system-site-packages "$VENV"
"$VENV/bin/pip" install --no-warn-script-location \
-r "$BACKEND/requirements.txt"
"$VENV/bin/pip" uninstall -y kubernetes openai hf_xet 2>/dev/null || true
echo "==> SHRIMP setup complete."
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor 2>/dev/null || true
}
post_upgrade() {
post_install
}
post_remove() {
rm -rf "$VENV"
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor 2>/dev/null || true
}
|