install_dependencies.sh 480 B

1234567891011121314151617
  1. # Exit immediately if a command returns a non-zero status.
  2. set -e
  3. brew install pyenv
  4. eval "$(pyenv init -)"
  5. # In order to work with ycmd, python *must* be built as a shared library. The
  6. # most compatible way to do this on macOS is with --enable-framework. This is
  7. # set via the PYTHON_CONFIGURE_OPTS option.
  8. PYTHON_CONFIGURE_OPTS="--enable-framework" \
  9. pyenv install ${YCM_PYTHON_VERSION}
  10. pyenv global ${YCM_PYTHON_VERSION}
  11. pip install -r python/test_requirements.txt
  12. set +e