1
0
Fork 0
cli-helpers/.travis/install.sh
Daniel Baumann 95bca6b33d
Merging upstream version 2.2.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-07 00:48:48 +01:00

25 lines
549 B
Bash
Executable file

#!/bin/bash
set -ex
if [[ "$(uname -s)" == 'Darwin' ]]; then
sw_vers
git clone --depth 1 https://github.com/pyenv/pyenv ~/.pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
case "${TOXENV}" in
py36)
pyenv install 3.6.1
pyenv global 3.6.1
;;
esac
pyenv rehash
fi
pip install virtualenv
python -m virtualenv ~/.venv
source ~/.venv/bin/activate
pip install -r requirements-dev.txt -U --upgrade-strategy only-if-needed