forked from ycm-core/YouCompleteMe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
101 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
# Linux installation | ||
|
||
virtualenv -p python${YCMD_PYTHON_VERSION} ${YCMD_VENV_DIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
# OS X installation | ||
# OS X-specific installation | ||
|
||
# OS X comes with 2 versions of python by default, and a neat system | ||
# (versioner) to switch between them: | ||
# /usr/bin/python2.7 - python 2.7 | ||
# /usr/bin/python2.6 - python 2.6 | ||
# | ||
# We just set the system default to match it | ||
# http://stackoverflow.com/q/6998545 | ||
defaults write com.apple.versioner.python Version ${YCMD_PYTHON_VERSION} | ||
# 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 | ||
|
||
# virtualenv is not installed by default on OS X under python2.6, and we don't | ||
# have sudo, so we install it manually. There is no "latest" link, so we have | ||
# to install a specific version. | ||
VENV_VERSION=13.1.2 | ||
# List of homebrew formulae to install in the order they appear. | ||
# These are dependencies of pyenv. | ||
REQUIREMENTS="ninja | ||
readline | ||
autoconf | ||
pkg-config | ||
openssl" | ||
|
||
curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-${VENV_VERSION}.tar.gz | ||
tar xvfz virtualenv-${VENV_VERSION}.tar.gz | ||
python virtualenv-${VENV_VERSION}/virtualenv.py -p python${YCMD_PYTHON_VERSION} ${YCMD_VENV_DIR} | ||
# Install node, go, ninja, pyenv and dependencies | ||
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters