From 88ad33e08be4707110fd490ab616c8b1bd67468d Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 16 Jul 2020 12:41:10 -0400 Subject: [PATCH] Use pip3 for Python files. --- scripts/travis/run-format.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/travis/run-format.sh b/scripts/travis/run-format.sh index 8395840ae9..ac525ccc98 100755 --- a/scripts/travis/run-format.sh +++ b/scripts/travis/run-format.sh @@ -20,7 +20,9 @@ git config --global clangformat.binary ${HOME}/clang+llvm-7.0.1-x86_64-linux-gnu popd # Install flake8 -pip install --user flake8 +sudo apt update -y +sudo apt install -y python3-pip +python3 -m pip install flake8 cd ${SOURCE_DIR} @@ -39,7 +41,7 @@ then fi # Check python code with flake8 -if ! ~/.local/bin/flake8 --config=flake8.cfg . +if ! flake8 --config=flake8.cfg . then exit 3 fi