From 67972ecdd064298bf89b1390ea8c178ed51eb049 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Mon, 16 Apr 2018 18:51:30 +0200 Subject: [PATCH] build: fix unkown option MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Newer version of pip does not support --download anymore, the option has been replaced by --cache-dir. This fixes errors like: + /tmp/venv.ufvIkiZl8v/bin/pip download --dest=/home/jenkins-build/.cache/pip pip ERROR: unknown command "download" Signed-off-by: Sébastien Han --- scripts/build_utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index e175a10e..e4762265 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -30,7 +30,7 @@ pip_download() { if ! $VENV/pip download $options --dest="$PIP_SDIST_INDEX" $package; then # pip <8.0.0 does not have "download" command $VENV/pip install $options \ - --upgrade --exists-action=i --download="$PIP_SDIST_INDEX" \ + --upgrade --exists-action=i --cache-dir="$PIP_SDIST_INDEX" \ $package fi } -- 2.39.5