install_dependencies.sh 693 B

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