1
0

install_dependencies.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Exit immediately if a command returns a non-zero status.
  2. set -e
  3. sudo apt-get update
  4. sudo apt-get install libsqlite3-dev
  5. sudo apt-get install -y build-essential \
  6. libssl-dev \
  7. zlib1g-dev \
  8. libbz2-dev \
  9. libreadline-dev \
  10. libsqlite3-dev \
  11. wget \
  12. curl \
  13. llvm \
  14. libncurses5-dev \
  15. libncursesw5-dev \
  16. xz-utils \
  17. tk-dev \
  18. libffi-dev \
  19. liblzma-dev \
  20. python-openssl \
  21. git
  22. curl https://pyenv.run | bash
  23. export PATH="$HOME/.pyenv/bin:$PATH"
  24. eval "$(pyenv init -)"
  25. # In order to work with ycmd, python *must* be built as a shared library. This
  26. # is set via the PYTHON_CONFIGURE_OPTS option.
  27. PYTHON_CONFIGURE_OPTS="--enable-shared" \
  28. CFLAGS="-I$(brew --prefix openssl)/include" \
  29. LDFLAGS="-L$(brew --prefix openssl)/lib" \
  30. pyenv install ${YCM_PYTHON_VERSION}
  31. pyenv global ${YCM_PYTHON_VERSION}
  32. pip install -r python/test_requirements.txt
  33. set +e
  34. # vim: ft=bash