mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
ci: use --break-system-packages
on mac when installing pynvim
Python 3.12+ throws an error if you try to install a package in an externally managed environment. Using `--break-system-packages` is not recommended for personal use, but for CI it should be fine and is probably the most straightforward solution.
This commit is contained in:
6
.github/scripts/install_deps.sh
vendored
6
.github/scripts/install_deps.sh
vendored
@ -31,11 +31,17 @@ if [[ $os == Linux ]]; then
|
||||
|
||||
if [[ -n $TEST ]]; then
|
||||
sudo apt-get install -y locales-all cpanminus attr libattr1-dev gdb fswatch
|
||||
|
||||
# Use default CC to avoid compilation problems when installing Python modules
|
||||
CC=cc python3 -m pip -q install --user --upgrade pynvim
|
||||
fi
|
||||
elif [[ $os == Darwin ]]; then
|
||||
brew update --quiet
|
||||
brew install ninja
|
||||
if [[ -n $TEST ]]; then
|
||||
brew install cpanminus fswatch
|
||||
|
||||
# Use default CC to avoid compilation problems when installing Python modules
|
||||
CC=cc python3 -m pip -q install --user --upgrade --break-system-packages pynvim
|
||||
fi
|
||||
fi
|
||||
|
Reference in New Issue
Block a user