nixos/installers/pipx.sh

8 lines
338 B
Bash
Executable file

#!/usr/bin/env bash
command -v pipx > /dev/null || python3 -m pip install --user pipx
command -v poetry > /dev/null || python3 -m pipx install poetry
pipx list | grep -i python-lsp-server && exit 0
python3 -m pipx install "python-lsp-server[all]" && python3 -m pipx inject python-lsp-server pylsp-mypy python-lsp-black python-lsp-isort