Separate installation of deb and pipx packages

This commit is contained in:
Ohad Livne 2025-07-12 22:25:54 +03:00
parent cf4e828b1b
commit ea09e028d4
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
2 changed files with 30 additions and 26 deletions

View file

@ -106,31 +106,5 @@ META_PKGS=(
# keep-sorted end
)
PIPX_PKGS=(
# keep-sorted start
python-lsp-server
rshell
ruff
# keep-sorted end
)
sudo DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes "${DEB_PKGS[@]}"
sudo DEBIAN_FRONTEND=noninteractive apt-get install --install-recommends --yes "${META_PKGS[@]}"
if (( "${#PIPX_PKGS[@]}" != 0 )); then
pipx install "${PIPX_PKGS[@]}"
fi
PYLSP_PLUGINS=(
# keep-sorted start
fs
podman
pydantic
pylsp-mypy
pylsp-rope
pytest
types-pyxdg
# keep-sorted end
)
pipx inject python-lsp-server "${PYLSP_PLUGINS[@]}"

View file

@ -0,0 +1,30 @@
#! /usr/bin/bash
set -euo pipefail
IFS=$'\n\t'
PIPX_PKGS=(
# keep-sorted start
python-lsp-server
rshell
ruff
# keep-sorted end
)
if (( "${#PIPX_PKGS[@]}" != 0 )); then
pipx install "${PIPX_PKGS[@]}"
fi
PYLSP_PLUGINS=(
# keep-sorted start
fs
podman
pydantic
pylsp-mypy
pylsp-rope
pytest
types-pyxdg
# keep-sorted end
)
pipx inject python-lsp-server "${PYLSP_PLUGINS[@]}"