We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1320e76 commit bc88b14Copy full SHA for bc88b14
scripts/install-on-travis.sh
@@ -6,6 +6,13 @@
6
if [ "$TRAVIS_OS_NAME" = osx ]; then
7
VIRTUAL_ENV="$HOME/virtualenv/python2.7"
8
if [ ! -x "$VIRTUAL_ENV/bin/python" ]; then
9
+ if ! which virtualenv &>/dev/null; then
10
+ # Install `virtualenv' in ~/.local (doesn't require `sudo' privileges).
11
+ pip install --user virtualenv
12
+ # Make sure ~/.local/bin is in the $PATH.
13
+ LOCAL_BINARIES=$(python -c 'import os, site; print(os.path.join(site.USER_BASE, "bin"))')
14
+ export PATH="$PATH:$LOCAL_BINARIES"
15
+ fi
16
virtualenv "$VIRTUAL_ENV"
17
fi
18
source "$VIRTUAL_ENV/bin/activate"
0 commit comments