mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Merge pull request #114 from jdhao/setup
fix: variable case not consistent, close #113
This commit is contained in:
commit
238886c136
@ -68,7 +68,7 @@ fi
|
|||||||
|
|
||||||
# Install some Python packages used by Nvim plugins.
|
# Install some Python packages used by Nvim plugins.
|
||||||
echo "Installing Python packages"
|
echo "Installing Python packages"
|
||||||
declare -a py_packages=("pynvim" 'python-lsp-server[all]' "black" "vim-vint" "pyls-isort" "pylsp-mypy")
|
declare -a PY_PACKAGES=("pynvim" 'python-lsp-server[all]' "black" "vim-vint" "pyls-isort" "pylsp-mypy")
|
||||||
|
|
||||||
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)"
|
||||||
@ -76,12 +76,12 @@ if [[ "$SYSTEM_PYTHON" = true ]]; then
|
|||||||
# 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 "$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
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user