From 56ec116f63331f757bc2e5f08c7cfc34684f98b9 Mon Sep 17 00:00:00 2001 From: arvidn Date: Fri, 27 Mar 2020 00:46:41 +0100 Subject: [PATCH] fix pip on travis --- .travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5f8f78781..831879a99 100644 --- a/.travis.yml +++ b/.travis.yml @@ -75,21 +75,23 @@ before_install: fi' - 'if [[ $TRAVIS_OS_NAME != "osx" ]]; then export B2=bjam; + export PIP=pip; else export B2=b2; + export PIP=pip3; sysctl hw.ncpu; fi' # we have to use python from brew rather than the system provided python # because of OSX System Integrity Protection, which prevents injecting # user-libraries (i.e. python modules) into system binaries (i.e. /usr/bin/python) - 'if [ "$docs" = "1" ]; then - pip install docutils; - pip install Pygments; + ${PIP} install docutils; + ${PIP} install Pygments; travis_retry brew install graphviz hunspell; fi' - if [ "$coverage" == "1" ]; then - pip install --user codecov; + ${PIP} install --user codecov; fi - 'echo "toolset: " ${toolset}' - 'echo "variant: " ${variant}'