YouCompleteMe/ci/travis/travis_install.osx.sh

25 lines
868 B
Bash
Raw Normal View History

2016-02-28 21:10:49 -05:00
# OS X-specific installation
2016-02-28 21:10:49 -05:00
# There's a homebrew bug which causes brew update to fail the first time. Run
# it twice to workaround. https://github.com/Homebrew/homebrew/issues/42553
brew update || brew update
2016-02-28 21:10:49 -05:00
# List of homebrew formulae to install in the order they appear.
# These are dependencies of pyenv.
REQUIREMENTS="ninja
readline
autoconf
pkg-config
openssl"
2016-02-29 13:26:50 -05:00
# Install pyenv and dependencies
2016-02-28 21:10:49 -05:00
for pkg in $REQUIREMENTS; do
# Install package, or upgrade it if it is already installed
brew install $pkg || brew outdated $pkg || brew upgrade $pkg
done
# In order to work with ycmd, python *must* be built as a shared library. The
# most compatible way to do this on OS X is with --enable-framework. This is
# set via the PYTHON_CONFIGURE_OPTS option
export PYTHON_CONFIGURE_OPTS="--enable-framework"