emacs-ipython-notebook/tools/install-virtualenv.sh

28 lines
568 B
Bash

#!/bin/bash
# Create virtualenvs for python{2,3} for Travis CI on OSX
set -x
WORKDIR=${HOME}/local
. tools/retry.sh
if [ "x$TRAVIS_OS_NAME" = "xosx" ]; then
brew update
brew list python &>/dev/null || brew install python
brew list python3 &>/dev/null || brew install python3
brew install pyenv-virtualenv
case "${TOXENV}" in
py27)
pyenv install 2.7.12
pyenv virtualenv 2.7.12 py27
;;
py35)
pyenv install 3.5.2
pyenv virtualenv 3.5.2 py35
;;
esac
fi