mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
fix(install): skip problematic pynvim installation (#4573)
This commit is contained in:
parent
3715ae645d
commit
85ccca97ac
1 changed files with 0 additions and 23 deletions
|
@ -46,10 +46,6 @@ if ! command -v tree-sitter &>/dev/null; then
|
|||
__npm_deps+=("tree-sitter-cli")
|
||||
fi
|
||||
|
||||
declare -a __pip_deps=(
|
||||
"pynvim"
|
||||
)
|
||||
|
||||
declare -a __rust_deps=(
|
||||
"fd::fd-find"
|
||||
"rg::ripgrep"
|
||||
|
@ -138,15 +134,11 @@ function main() {
|
|||
if confirm "Would you like to install LunarVim's NodeJS/BunJS dependencies: $(stringify_array "${__npm_deps[@]}")?"; then
|
||||
install_nodejs_deps
|
||||
fi
|
||||
if confirm "Would you like to install LunarVim's Python dependencies: $(stringify_array "${__pip_deps[@]}")?"; then
|
||||
install_python_deps
|
||||
fi
|
||||
if confirm "Would you like to install LunarVim's Rust dependencies: $(stringify_array "${__rust_deps[@]}")?"; then
|
||||
install_rust_deps
|
||||
fi
|
||||
else
|
||||
install_nodejs_deps
|
||||
install_python_deps
|
||||
install_rust_deps
|
||||
fi
|
||||
fi
|
||||
|
@ -329,21 +321,6 @@ function install_nodejs_deps() {
|
|||
echo "check how to solve it: https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally"
|
||||
}
|
||||
|
||||
function install_python_deps() {
|
||||
echo "Verifying that pip is available.."
|
||||
if ! python3 -m ensurepip >/dev/null; then
|
||||
if ! python3 -m pip --version &>/dev/null; then
|
||||
echo "[WARN]: skipping installing optional python dependencies"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
echo "Installing with pip.."
|
||||
for dep in "${__pip_deps[@]}"; do
|
||||
python3 -m pip install --user "$dep" || return 1
|
||||
done
|
||||
echo "All Python dependencies are successfully installed"
|
||||
}
|
||||
|
||||
function __attempt_to_install_with_cargo() {
|
||||
if command -v cargo &>/dev/null; then
|
||||
echo "Installing missing Rust dependency with cargo"
|
||||
|
|
Loading…
Reference in a new issue