Separate installation of deb and pipx packages
This commit is contained in:
parent
cf4e828b1b
commit
ea09e028d4
2 changed files with 30 additions and 26 deletions
|
|
@ -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[@]}"
|
||||
30
.config/setup/06-install-pipx-packages.sh
Executable file
30
.config/setup/06-install-pipx-packages.sh
Executable 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[@]}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue