You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/runner/docker/requirements.sh

24 lines
475 B
Bash

#!/bin/bash -eu
python_versions=(
2.6
2.7
3.5
3.6
)
requirements=()
for requirement in *.txt; do
if [ "${requirement}" != "constraints.txt" ]; then
requirements+=("-r" "${requirement}")
fi
done
for python_version in "${python_versions[@]}"; do
set -x
"python${python_version}" /tmp/get-pip.py -c constraints.txt
"pip${python_version}" install --disable-pip-version-check -c constraints.txt "${requirements[@]}"
set +x
done