install_dependencies.sh 639 B

12345678910111213141516171819202122
  1. # Exit immediately if a command returns a non-zero status.
  2. set -e
  3. sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
  4. eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
  5. brew install pyenv
  6. eval "$(pyenv init -)"
  7. # In order to work with ycmd, python *must* be built as a shared library. This
  8. # is set via the PYTHON_CONFIGURE_OPTS option.
  9. PYTHON_CONFIGURE_OPTS="--enable-shared" \
  10. CFLAGS="-I$(brew --prefix openssl)/include" \
  11. LDFLAGS="-L$(brew --prefix openssl)/lib" \
  12. pyenv install ${YCM_PYTHON_VERSION}
  13. pyenv global ${YCM_PYTHON_VERSION}
  14. pip install -r python/test_requirements.txt
  15. set +e