mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
a3399f9a63
Install Python 3.3 from the Deadsnakes PPA. As this doesn't have pip, install it manually into ~/.local. ~/.local/bin is apparently in Travis's default PATH, meaning "pip" doesn't refer to Python 2's pip anymore, but to the manually installed Python 3 version. Updated the scripts to use version- suffixed executable names (e.g. pip2.7). Set CC=cc to use system's default compiler when installing Python modules, as gcc on OS X had a problem with compiling one of the dependencies of the Neovim Python module.
29 lines
671 B
Bash
Executable File
29 lines
671 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
if [[ -n "${CI_TARGET}" ]]; then
|
|
exit
|
|
fi
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
|
|
brew update
|
|
fi
|
|
|
|
echo "Upgrade Python 2's pip."
|
|
pip2.7 install --user --upgrade pip
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
|
|
echo "Install Python 3."
|
|
brew install python3
|
|
echo "Upgrade Python 3's pip."
|
|
pip3 install --user --upgrade pip
|
|
else
|
|
# TODO: Replace with upgrade when Travis gets python3-pip package.
|
|
echo "Install pip for Python 3."
|
|
curl -sSL https://bootstrap.pypa.io/get-pip.py -o "${HOME}/get-pip.py"
|
|
# After this, pip in PATH will refer to Python 3's pip.
|
|
python3.3 "${HOME}/get-pip.py" --user --upgrade
|
|
fi
|