From 4c52ad9d3e3d6f74d3841a51a1c2bbcada17f581 Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Tue, 29 Jun 2021 15:56:09 +0100 Subject: [PATCH] travis: Use latest pip As we depend on the cryptography library, and the pip version that comes with Ubuntu Focal isn't new enough to avoid the following error about a rust compiler and pre-built wheels, ensure Travis uses an up-to-date pip. error: can't find Rust compiler If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler. To update pip, run: pip install --upgrade pip --- .travis.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index c924a96573..2aec676c74 100644 --- a/.travis.yml +++ b/.travis.yml @@ -217,8 +217,7 @@ matrix: hypothesis>=3,<4 coverage>=4.5,<5 " - - python -m pip install --upgrade pip==18.1 - - python -m pip install --upgrade setuptools==40.4.3 + - pip install --upgrade pip - pip install -r requirements.txt - pip list --verbose script: @@ -246,8 +245,7 @@ matrix: python: 3.7 install: # Install python modules - - python -m pip install --upgrade pip==18.1 - - python -m pip install --upgrade setuptools==40.4.3 + - pip install --upgrade pip - pip install tabulate argparse - pip list --verbose # Fetch the base branch to compare against