From c8ba86c2143e95d1b15006904179ad39a20dc6ce Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Thu, 5 Aug 2021 13:03:35 -0700 Subject: [PATCH] tests: Update pip prior to installing gem5art packages This fixes the `invalid command 'bdist_wheel'` error which may be causing wider problems, as reported in this email thread: https://www.mail-archive.com/gem5-dev@gem5.org/msg39790.html The `bdist_wheel` package, a dependency of the `celery` package, was not being installed correctly. The root cause of this problem is not known, but solutions are presented here: https://stackoverflow.com/questions/34819221/why-is-python-setup-py-saying-invalid-command-bdist-wheel-on-travis-ci Upgrading pip prior to installing the gem5art packages seemed like the simplest solution. Change-Id: I1bd4e85871c37d0522e16a90ff6b8acc3fdd9f94 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/49044 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- tests/jenkins/gem5art-tests.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/jenkins/gem5art-tests.sh b/tests/jenkins/gem5art-tests.sh index c655fbbc8c..b9dee556b6 100755 --- a/tests/jenkins/gem5art-tests.sh +++ b/tests/jenkins/gem5art-tests.sh @@ -43,6 +43,14 @@ mkdir -p .pyenv python3 -m venv .pyenv source .pyenv/bin/activate +# The 20.04_all-dependencies image has a slightly outdated version of pip which +# causes problems when trying to install the celery package. The error +# is `invalid command 'bdist_wheel'`, which can be resolved by upgrading pip +# prior to installing the modules. More information on this error is found +# here: +# https://stackoverflow.com/questions/34819221/why-is-python-setup-py-saying-invalid-command-bdist-wheel-on-travis-ci + pip install --upgrade pip + # Install the packages pip install -e util/gem5art/artifact pip install -e util/gem5art/run