Merge branch 'main' of github:Didictateur/dotfiles
This commit is contained in:
commit
a93aa7d0ea
1 changed files with 3 additions and 3 deletions
|
|
@ -71,16 +71,16 @@ echo "Installing Python packages"
|
||||||
declare -a PY_PACKAGES=("pynvim" 'python-lsp-server[all]' "vim-vint" "python-lsp-isort" "pylsp-mypy" "python-lsp-black")
|
declare -a PY_PACKAGES=("pynvim" 'python-lsp-server[all]' "vim-vint" "python-lsp-isort" "pylsp-mypy" "python-lsp-black")
|
||||||
|
|
||||||
if [[ "$SYSTEM_PYTHON" = true ]]; then
|
if [[ "$SYSTEM_PYTHON" = true ]]; then
|
||||||
echo "Using system Python to install $(PY_PACKAGES)"
|
echo "Using system Python to install ${PY_PACKAGES[*]}"
|
||||||
|
|
||||||
# If we use system Python, we need to install these Python packages under
|
# If we use system Python, we need to install these Python packages under
|
||||||
# user HOME, since we do not have permissions to install them under system
|
# user HOME, since we do not have permissions to install them under system
|
||||||
# directories.
|
# directories.
|
||||||
for p in "${PY_PACKAGES[@]}"; do
|
for p in "${PY_PACKAGES[@]}"; do
|
||||||
pip install --user "$p"
|
pip install --user --break-system-package "$p"
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "Using custom Python to install $(PY_PACKAGES)"
|
echo "Using custom Python to install ${PY_PACKAGES[*]}"
|
||||||
for p in "${PY_PACKAGES[@]}"; do
|
for p in "${PY_PACKAGES[@]}"; do
|
||||||
"$CONDA_DIR/bin/pip" install "$p"
|
"$CONDA_DIR/bin/pip" install "$p"
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue